Expand description
JWT token generation and verification.
This module provides functions to create access and refresh tokens with appropriate claims,
and to validate tokens against the configured JWT secret. All configuration values are loaded
from environment variables and cached in the Config singleton.
Structs§
Functions§
- generate_
access_ token - Generates a new access token for a user.
- generate_
refresh_ token - Generates a new refresh token for a user.
- verify_
token - Verifies and decodes a JWT token.