Skip to content

BeechCMS


BeechCMS / @beechcms/core / OAuthTokenRecord

Interface: OAuthTokenRecord ​

Extends ​

Properties ​

authorizationCodeHash ​

authorizationCodeHash: string

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

Inherited from ​

NewOAuthToken.authorizationCodeHash


clientId ​

clientId: string

Inherited from ​

NewOAuthToken.clientId


createdAt ​

createdAt: number


expiresAt ​

expiresAt: number

Inherited from ​

NewOAuthToken.expiresAt


id ​

id: string

Inherited from ​

NewOAuthToken.id


revokedAt ​

revokedAt: number | null


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")[]

Inherited from ​

NewOAuthToken.scope


tokenHash ​

tokenHash: string

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

Inherited from ​

NewOAuthToken.tokenHash


tokenType ​

tokenType: OAuthTokenType

Inherited from ​

NewOAuthToken.tokenType


userId ​

userId: string

Inherited from ​

NewOAuthToken.userId