Skip to content

Commit

Permalink
refactor: [#445] new return error type for user id extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-nt committed Feb 6, 2024
1 parent adec821 commit b5da547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/api/server/v1/extractors/user_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ where

match app_data.auth.get_user_id_from_bearer_token(&maybe_bearer_token).await {
Ok(user_id) => Ok(ExtractLoggedInUser(user_id)),
Err(error) => Err(error.into_response()),
Err(_) => Err(ServiceError::Unauthorized.into_response()),
}
}
}

0 comments on commit b5da547

Please sign in to comment.