Module iqps_backend::routing::middleware

source ·
Expand description

Middleware for the axum router

Functions§

  • Verifies the JWT and authenticates a user. If the JWT is invalid, the user is sent an unauthorized status code. If the JWT is valid, the authentication is added to the state.