Fix misleading comment
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -56,7 +56,7 @@ impl FromRequest for AuthExtractor {
|
||||
};
|
||||
|
||||
Box::pin(async move {
|
||||
// Check for authentication using OpenID
|
||||
// Check for authentication using API token
|
||||
if let Some(token) = req.headers().get(constants::API_TOKEN_HEADER) {
|
||||
let Ok(jwt_token) = token.to_str() else {
|
||||
return Err(actix_web::error::ErrorBadRequest(
|
||||
|
Reference in New Issue
Block a user