Skip to content
On this page

Interface: JtiStore

Defined in: me-client/src/tokens.ts:32 (opens in a new tab)

Where you record the jti of each token you accepted, until it expires. Yours to provide, shared by every server that accepts sign-ins: a unique row in your database, or Redis SET jti 1 NX EXAT exp. add must be atomic: true when it recorded the jti, false when the jti was there already.

MethodsLink to this section

add()Link to this section

TypeScript
add(jti: string, exp: number): boolean | Promise<boolean>;

Defined in: me-client/src/tokens.ts:33 (opens in a new tab)

ParametersLink to this section

ParameterType
jtistring
expnumber

ReturnsLink to this section

boolean | Promise<boolean>