ReadonlyauthorizationReturn the authorization deep link (URL) to show as QR or open on the signer device.
Security: This URL contains the client_secret in plaintext.
Treat it as a short-lived secret and delete it after the flow completes.
See Pubky.startCookieAuthFlow() docs for storage guidance.
Block until the user approves on their signer device; returns a Session.
Resolves when approved; rejects on timeout/cancel/network errors.
Block until the user approves on their signer device; returns an AuthToken.
Resolves when approved; rejects on timeout/cancel/network errors.
Non-blocking single poll step (advanced UIs).
A session if the approval arrived, otherwise undefined.
StaticresumeResume a previously started auth flow from its saved authorizationUrl (standalone).
Prefer pubky.resumeCookieAuthFlow() to reuse a facade client; this creates a default (mainnet) client.
Relay messages expire after ~5 minutes; resume is only viable in that window.
See Pubky.resumeCookieAuthFlow() / Pubky.startCookieAuthFlow() for full guidance.
Security: authorizationUrl contains the client_secret.
Delete it from storage as soon as resume completes or is abandoned.
A flow reconnected to the original relay channel.
StaticstartStart a flow (standalone).
Prefer pubky.startCookieAuthFlow() to reuse a facade client.
Comma-separated capabilities, e.g. "/pub/app/:rw,/priv/foo.txt:r".
Each entry must be "<scope>:<actions>", where:
scope starts with / (e.g. /pub/example.com/)actions is any combo of r and/or w (order is normalized; wr -> rw)
Empty string is allowed (no scopes).The kind of authentication flow to perform. This can either be a sign in or a sign up flow. Examples:
AuthFlowKind.signin() - Sign in to an existing account.AuthFlowKind.signup(homeserverPublicKey, signupToken) - Sign up for a new account.Optionalrelay: string | null
Optional HTTP relay base, e.g. "https://demo.httprelay.io/inbox/".
Defaults to the default Synonym-hosted relay when omitted.
Optionalx_callback: XCallbackParams | nullA running auth flow. Call authorizationUrl() to show the deep link,
then awaitApproval() to receive a Session.
Start and control a pubkyauth authorization flow.
Typical flow:
AuthFlow.start(...)orpubky.startCookieAuthFlow(...)authorizationUrl()as QR/deeplink to the user’s signing deviceawaitApproval()to receive a readySessionDeprecated
Use
GrantAuthFlowinstead.