Skip to content

TypeScript API / laikacms/auth / AuthContext

Interface: AuthContext ​

Result of resolving a bearer string, regardless of whether it was a session (OAuth) token or a PAT. The { user, scopes } shape every REST/MCP consumer should key enforcement off of.

Properties ​

patId? ​

ts
optional patId?: string;

scopes ​

ts
scopes: Scope[];

tokenType ​

ts
tokenType: TokenType;

user ​

ts
user: AuthUser;

Released under the MIT License.