Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/security / / createToken
Function: createToken()
ts
function createToken(options): Promise<CreatedToken>;Defined in: packages/security/src/auth/crud.ts:64
Mint a new token, persist its HMAC hash through the injected store, and return the raw token wrapped in a SecretValue. The plaintext value is shown to the user exactly once — at the call site of this function.
Parameters
| Parameter | Type |
|---|---|
options | CreateTokenOptions |
Returns
Promise<CreatedToken>