We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adec821 commit b5da547Copy full SHA for b5da547
src/web/api/server/v1/extractors/user_id.rs
@@ -31,7 +31,7 @@ where
31
32
match app_data.auth.get_user_id_from_bearer_token(&maybe_bearer_token).await {
33
Ok(user_id) => Ok(ExtractLoggedInUser(user_id)),
34
- Err(error) => Err(error.into_response()),
+ Err(_) => Err(ServiceError::Unauthorized.into_response()),
35
}
36
37
0 commit comments