Skip to content
On this page

Function: reproofFresh()

TypeScript
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

ParameterType
payloadSessionPayload
opts{ max_age_secs: number; }
opts.max_age_secsnumber

ReturnsLink to this section

boolean