Skip to content

IssueOptions

A

readonly optional authenticatedAt?: number

When the credential was proved. Default now; a re-issue that proved nothing passes the old value.


readonly optional epoch?: number

The epoch read before the credential was checked.


readonly optional inherit?: StoredSession<A>

The session this one replaces: its attributes, remember-me and cookie shape carry over. The re-issue vias (password-change, reauthenticate, revoke-others, email-verified, email-changed) are for the core’s own flows: they require an inherit the core itself read live from the store, for the same user, before the flow revoked anything, and refuse every other value. With any other via of your own, inherit must be a session the store still holds live for this user (or the object confirmLiveSession returned, when the flow revokes sessions before it issues), or the issue is refused as session_expired. The beforeSessionCreate hooks then see it as reissueOf. The two-factor plugin lets such a re-issue through when the session it replaces was created after the factor’s enrollment window closed, or holds an open step-up: a best effort with known gaps (see provedFactor in the plugin), so turn the factor on with revokeOtherSessions: true.


readonly meta: RequestMeta


readonly optional persistentCookie?: boolean

Keep the cookie past the browser session even without remember-me. Default: same as rememberMe.


readonly optional rememberMe?: boolean


readonly via: IssueVia