What's Changed
- [MAJOR] Return session_jwt in local JWT authentication by @logan-stytch in #254
Why this is a MAJOR update
In the B2B API, local JWT authentication was only returning the member session. If a new session_jwt was minted, there was no way for the client to retrieve the new value, which meant further local authentication would never succeed.
This release addresses the issue by returning an AuthenticateJWTLocalResponse
from the authenticate_jwt
endpoint.
It also modifies the consumer JWT authentication since the proper return type is AuthenticateJWTLocalResponse
, not Optional[AuthenticateJWTLocalResponse]
. The methods will never return None
, they will always contain a response (unless an error occurred, which will be propagated via a StytchError
being raised).
Full Changelog: v12.13.0...v13.0.0