Skip to content

Commit 9a8e367

Browse files
committed
fix auth execptions
1 parent 981b831 commit 9a8e367

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws_packages"
3-
version = "0.0.17"
3+
version = "0.0.18"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

aws_packages/auth/solana/middlewares.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ def solana_login_required(
2222
request = AuthorizationRequest(**app.current_event.headers)
2323
try:
2424
solana_auth_backend.authenticate_with_token(request.token)
25-
except JWTAuthError:
26-
raise UnauthorizedError(f"Unauthorized")
25+
except Exception as exc:
26+
raise UnauthorizedError(f"Unauthorized: {exc}")
2727
return next_middleware(app)

0 commit comments

Comments
 (0)