Skip to main content

Module middleware

Module middleware 

Source
Expand description

Static-Bearer authentication middleware for the NotedThat API.

Functions§

auth_middleware
Axum middleware that validates the Authorization: Bearer <token> header.
extract_request_id
Extract the x-request-id value from request extensions, falling back to a generated UUID if the SetRequestId middleware hasn’t run yet.