Skip to main content

auth_middleware

Function auth_middleware 

Source
pub async fn auth_middleware(
    __arg0: State<AuthState>,
    request: Request,
    next: Next,
) -> Result<impl IntoResponse, (StatusCode, Json<ApiError>)>
Expand description

Authentication middleware.