PkceState interface

PKCE state stored in localStorage during magic link flow. Uses localStorage instead of sessionStorage to support cross-tab flows (e.g., user clicks magic link in email which opens in a new tab). Keyed by state parameter to support concurrent requests.

Properties

codeVerifier

The code verifier for PKCE exchange.

createdAt

When this state was created (for cleanup purposes).

redirectUri

The redirect URI that was used when sending the magic link.

Property Details

codeVerifier

The code verifier for PKCE exchange.

codeVerifier: string

Property Value

string

createdAt

When this state was created (for cleanup purposes).

createdAt: number

Property Value

number

redirectUri

The redirect URI that was used when sending the magic link.

redirectUri: string

Property Value

string