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
| code |
The code verifier for PKCE exchange. |
| created |
When this state was created (for cleanup purposes). |
| redirect |
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