Function: reproofFresh()
function reproofFresh(payload: SessionPayload, opts: {
max_age_secs: number;
}): boolean;
Defined in: index.ts:361 (opens in a new tab)
Whether a session holds a fresh re-proof for a gate that moves money or
releases identity: a fresh sudo_at (an email code or a wallet signature),
or a fresh step_up_at (a passkey tap) on a session whose sign-in named
more than a passkey. A passkey cannot vouch for itself, so one synced
passkey never both signs in and opens such a gate. A session that states no
amr was minted before the auth host wrote it, and its step-up counts as it
always has; an amr that does not read (readSignInFacts) does not.
ParametersLink to this section
| Parameter | Type |
|---|---|
payload | SessionPayload |
opts | { max_: number; } |
opts. | number |
ReturnsLink to this section
boolean