Chatto.Auth.V1.PushSubscriptionCleanupService (chatto v0.1.0)

Copy Markdown View Source

Public capability-authenticated cleanup for browser push subscriptions.

Summary

Functions

Removes the exact current subscription when its Push API auth secret and per-save cleanup token match. This public RPC requires those capabilities, not an authenticated account session, and does not reveal whether a match existed.

Functions

delete_subscription(client, request)

@spec delete_subscription(
  Req.Request.t(),
  Chatto.Auth.V1.DeleteSubscriptionRequest.t()
) ::
  {:ok, Chatto.Auth.V1.DeleteSubscriptionResponse.t()}
  | {:error, Chatto.Connect.Error.t()}

Removes the exact current subscription when its Push API auth secret and per-save cleanup token match. This public RPC requires those capabilities, not an authenticated account session, and does not reveal whether a match existed.