Function: parseSignInRequirement()
function parseSignInRequirement(requirement: unknown): {
amr: ("bip322" | "email" | "passkey" | "google" | "github")[];
maxAge?: number;
};
Defined in: sign-in.ts:60 (opens in a new tab)
requirement as satisfiesSignInRule reads it. Throws on one it
cannot read: not an object, a key other than amr and maxAge, a method
outside AUTH_METHODS, or a maxAge that is not a whole number of
seconds from 0. A misspelt key would otherwise require nothing.
ParametersLink to this section
| Parameter | Type |
|---|---|
requirement | unknown |
ReturnsLink to this section
{
amr: ("bip322" | "email" | "passkey" | "google" | "github")[];
maxAge?: number;
}
| Name | Type | Defined in |
|---|---|---|
amr | ("bip322" | "email" | "passkey" | "google" | "github")[] | sign-in.ts:60 (opens in a new tab) |
maxAge? | number | sign-in.ts:60 (opens in a new tab) |