AuthSession¶
Import: import system.webapi.auth;
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
AuthSession¶
A refresh-token record. Stores contain only the digest of the bearer secret.
hash¶
Hash of the refresh token; the raw refresh token is not stored.
family¶
Identifier shared by successive refresh tokens for the same session.
subject¶
Stable identifier of the authenticated account.
scopes¶
Space-separated permissions granted to this account or token.
expires¶
Expiry time in Unix epoch seconds.
csrf¶
Secret used to validate requests made with session cookies.
consumed¶
Whether this refresh session has already been rotated.
constructor¶
Creates a AuthSession with hash, family, subject, scopes, expires, csrf.