Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / listTokens

Function: listTokens()

ts
function listTokens(tokenStore, opts?): Promise<readonly TokenMetadata[]>;

Defined in: packages/security/src/auth/crud.ts:108

List token metadata. Never returns the raw token or the HMAC hash; the hash is hex on-disk only and would otherwise be a small offline brute-force vector if both the database and the pepper were compromised.

Parameters

ParameterType
tokenStoreAuthTokenStore
opts{ includeRevoked?: boolean; }
opts.includeRevoked?boolean

Returns

Promise&lt;readonly TokenMetadata[]&gt;

Stable