Documentation / @zerotal/auth / NewToken
Interface: NewToken
Defined in: auth/src/PersonalAccessToken.ts:52
The result of createToken: the one-time plaintext plus the row to persist.
Properties
plaintext
plaintext:
string
Defined in: auth/src/PersonalAccessToken.ts:54
The plain-text token — show this to the user once and never store it.
row
row:
Omit<TokenRow,"id"|"created_at"|"updated_at">
Defined in: auth/src/PersonalAccessToken.ts:56
The row stored in the database (its token field is the SHA-256 hash of plaintext).