Skip to content

BeechCMS


BeechCMS / @beechcms/core / NewOAuthToken

Interface: NewOAuthToken ​

Extended by ​

Properties ​

authorizationCodeHash ​

authorizationCodeHash: string

Hash of the authorization code this token descends from, for cascade revocation.


clientId ​

clientId: string


expiresAt ​

expiresAt: number


id ​

id: string


scope ​

scope: ("content:read" | "content:delete" | "schema:read" | "schema:write" | "content:write" | "media:read" | "media:write" | "automations:read" | "automations:write" | "users:read" | "users:write" | "settings:read" | "settings:write" | "analytics:read" | "agent:read" | "agent:approve")[]


tokenHash ​

tokenHash: string

SHA-256 hex hash of the token. The plaintext token is never persisted.


tokenType ​

tokenType: OAuthTokenType


userId ​

userId: string