Module core

Source
Expand description

This module contains the core functionality of authentication middleware.

Structs§

Claims
Represents the payload after decoding a token.

Functions§

authenticate_user
Retrieve the user information from a JWT token. Do not include the Bearer prefix, only the actual JWT token.
decode_jwt 🔒
Decodes a JWT token into a [TokenData<Claims>].