Skip to content

AuthAccount

1 min read

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.

AuthAccount

Persisted account data supplied by an application repository.

public class AuthAccount

subject

Stable identifier of the authenticated account.

public subject: string

password_hash

Encoded password hash; never a plain-text password.

public password_hash: string

scopes

Space-separated permissions granted to this account or token.

public scopes: string

constructor

Creates a AuthAccount with subject, password_hash, scopes.

public constructor(subject: string, password_hash: string, scopes: string = "")