Skip to main content

worker_token_auth

Function worker_token_auth 

Source
pub async fn worker_token_auth(req: Request, next: Next) -> Response
Expand description

Axum middleware that validates a static worker token.

Extracts Authorization: Bearer {token} and compares against the expected token. Returns 401 if missing or invalid.