Members
# constant clearStoredCodeVerifier
Removes the PKCE code verifier from sessionStorage.
# constant generateCodeVerifier
Generates a high-entropy, cryptographically strong random string for use as a PKCE code verifier.
It uses rejection sampling to eliminate modulo bias, ensuring a perfectly uniform distribution
across the character set recommended by RFC 7636.
# constant getStoredCodeVerifier
Retrieves the PKCE code verifier from sessionStorage.
# constant setStoredCodeVerifier
Stores the PKCE code verifier in sessionStorage.
Type Definitions
object
# Claims
Custom claims can be added via the `TCustomClaims` generic parameter, which will be merged
with the standard claims properties. These custom claims must follow the `Record` pattern.
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
subject |
string
|
The subject or identifier of the claims. | |
issued_at |
string
|
<optional> |
The timestamp when the claims were issued (optional). |
expiration |
string
|
The timestamp when the claims expire. | |
audience |
Array.<string>
|
<optional> |
The intended audience(s) for the claims (optional). |
issuer |
string
|
<optional> |
The entity that issued the claims (optional). |
email |
Pick.<Email, ("address"|"is_primary"|"is_verified")>
|
<optional> |
Email information associated with the subject (optional). |
username |
string
|
<optional> |
The subject's username (optional). |
session_id |
string
|
The session identifier linked to the claims. | |
subject |
string
|
||
issued_at |
string
|
<optional> |
|
expiration |
string
|
||
audience |
Array
|
<optional> |
|
issuer |
string
|
<optional> |
|
email |
Pick.<Email, ("address"|"is_primary"|"is_verified")>
|
<optional> |
|
username |
string
|
<optional> |
|
session_id |
string
|