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>
].