Function rmoods_backend::auth::middleware::authorization
source ยท pub async fn authorization(
request: Request,
next: Next,
) -> Result<Response, StatusCode>
Expand description
Verify the Authorization
header and decode the JWT.
All requests to protected routes should pass through this middleware.