Skip to main content

Module token

Module token 

Source

Structs§

TokenClaims
TokenDetails

Enums§

TokenType
Token class. A signed claim, so a refresh path can reject an access token and vice-versa — without this, one per-user key signs both classes and an access token could be replayed as a refresh token.

Functions§

generate_jwt_token
generate_jwt_token_with_uuid
unverified_user_id
Reads the sub (user id) from a token WITHOUT verifying its signature.
verify_jwt_token