Skip to main content

Module claims

Module claims 

Source
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 None when the request was not authenticated.
with_jwt
Stores a validated token on the request extensions.