Type Alias: ApiTokenOptions
ApiTokenOptions =
object
Defined in: types.ts:18
Properties
lookup
lookup: (
tokenHash) =>Promise<AuthenticatedUser|null>
Defined in: types.ts:23
Receives the SHA-256 hash of the presented token and returns the authenticated user, or null if not found / revoked.
Parameters
| Parameter | Type |
|---|---|
tokenHash | string |
Returns
Promise<AuthenticatedUser | null>