Create a new Auth instance
Auth configuration
ReadonlyeventEvent emitter for authentication events (LOGGED_IN, LOGGED_OUT) Exposed for wallet and passport packages to subscribe to auth state changes
Login the user with extended options Supports cached sessions, silent login, redirect flow, and direct login
Optionaloptions: LoginOptionsExtended login options
Promise that resolves with the user or null
Login with redirect Redirects the page for authentication
OptionaldirectLoginOptions: auth.DirectLoginOptionsOptional direct login options
Promise that resolves when redirect is initiated
Get the PKCE authorization URL for login flow
OptionaldirectLoginOptions: auth.DirectLoginOptionsOptional direct login options
OptionalimPassportTraceId: stringOptional trace ID for tracking
Promise that resolves with the authorization URL
Handle the PKCE login callback
The authorization code from the OAuth provider
The state parameter for CSRF protection
Promise that resolves with the authenticated user
Store tokens from device flow and retrieve user
The token response from device flow
Promise that resolves with the authenticated user
InternalGet auth configuration
IAuthConfiguration instance
Public-facing Auth class for authentication Provides login/logout helpers and exposes auth state events