Skip to content
On this page

Function: satisfiesSignInRule()

TypeScript
function satisfiesSignInRule(
   payload: {
  amr?: unknown;
  auth_time?: unknown;
}, 
   requirement: SignInRequirement, 
   now?: number): boolean;

Defined in: sign-in.ts:85 (opens in a new tab)

Whether a token's sign-in meets requirement at now, in Unix seconds. A fact the token does not state meets nothing, so a token minted before the facts were written meets only an empty requirement. Throws on a requirement parseSignInRequirement refuses, or a now that is not a finite number.

ParametersLink to this section

ParameterType
payload{ amr?: unknown; auth_time?: unknown; }
payload.amr?unknown
payload.auth_time?unknown
requirementSignInRequirement
nownumber

ReturnsLink to this section

boolean