Package-level declarations
AtOAuth flow orchestrator, DpopAuthProvider, OAuthSession(Store), DpopSigner, and the exceptions thrown when a session expires or a step in the OAuth flow fails.
Types
AT Protocol OAuth 2.0 flow orchestrator for public clients.
Resolved authorization server metadata — everything the OAuth flow needs to construct PAR requests, authorization URLs, and token exchange calls.
Implements the AT Protocol discovery chain:
AuthProvider implementation that attaches DPoP proof-of-possession headers on every XRPC request and handles token refresh transparently.
Signs DPoP proof JWTs using EC P-256 (ES256) per RFC 9449.
Persisted OAuth session state. Contains everything needed to make authenticated XRPC requests and refresh the session when the access token expires.
Platform-agnostic session persistence interface. Consumers provide the storage backend — the module handles serialization.
Thrown by AtOAuth.beginSignup when the configured authorization server's /.well-known/oauth-authorization-server metadata does not advertise "create" in prompt_values_supported. Per OIDC Prompt Create 1.0 the prompt=create value tells the server "render the signup UI"; servers that don't advertise the value may silently ignore it or reject the PAR.