Expand description
Access to the validated JWT that the API middleware attaches to a request.
Go stores the token under a private context key; Rust stores it in the request extensions, which serve the same purpose.
Structs§
- JwtToken
- A validated JWT: its header and its decoded claim set.
Functions§
- jwt_
from_ context - Returns the validated JWT stored by the API middleware, or
Nonewhen the request was not authenticated. - with_
jwt - Stores a validated token on the request extensions.