erichosick
07/04/2023, 5:56 AMsFrontToken
set but when we make our API calls that require a Bearer token. We have existing code that sets the bearer token for us but I can't seem to find the function to get the JWT token to pass to that Bearer token. If we use sFrontToken
we get an error from the backend (supported by Http API Gateway) of Bearer scope="" error="invalid_token" error_description="token contains an invalid number of segments"
Using the value from sFrontToken
also seems to be invalid when pasted to https://jwt.io/ (which takes 3 parts).
const accessToken = await Session.getAccessToken();
seems to always return undefined.
Thoughts?