Repository navigation
fix(auth): raise AuthInvalidJwtError for non-JWT access tokens in set_session - #2059
Conversation
…_session
`set_session` indexed `access_token.split(".")[1]` before decoding, so a
token without a dot raised `IndexError` instead of `AuthInvalidJwtError`.
Let `decode_jwt` validate the structure instead. SDK-2747
|
No actionable comments were generated in the recent review. Summary
Change: Bug fix Merge Risk:
|
Fixes SDK-2747. Port of the v2 fix in #1920.
set_sessionno longer indexesaccess_token.split(".")[1]before decoding, so a token without a dot raisesAuthInvalidJwtErrorinstead ofIndexError.