Skip to content

BeechCMS


BeechCMS / @beechcms/core / NewAuthorizationCode

Interface: NewAuthorizationCode ​

Extended by ​

Properties ​

clientId ​

clientId: string


codeChallenge ​

codeChallenge: string


codeChallengeMethod ​

codeChallengeMethod: "S256"

Always 'S256'; the column CHECK constraint rejects anything else.


codeHash ​

codeHash: string

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


expiresAt ​

expiresAt: number


redirectUri ​

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


userId ​

userId: string