Skip to main content

Module jwt

Module jwt 

Source
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§

Claims

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.