Skip to content

Commit 609571d

Browse files
committed
fix(portaswitch): correct error message for expired access token
1 parent 5c1b5b0 commit 609571d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/bss/adapters/portaswitch/adapter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ def validate_session(self, access_token: str) -> SessionInfo:
273273
if not user_id:
274274
raise WebTritErrorException(
275275
status_code=401,
276-
error_message="Access token invalid",
277-
code="access_token_invalid",
276+
error_message="Access token expired",
277+
code="access_token_expired",
278278
)
279279

280280
return SessionInfo(user_id=UserId(str(user_id)), access_token=AccessToken(access_token))

0 commit comments

Comments
 (0)