Skip to content

generateScimToken

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/scim/scim.constants.ts

Mint a new opaque SCIM bearer token (shown to the admin exactly once) plus its sha256 hash (the only thing persisted). 30 random bytes → 60 hex chars.

Signature

ts
function generateScimToken(): { plaintext: string; hash: string }

Returns: { plaintext: string; hash: string }

Was this page helpful?

Download as PDF