So, we are getting a `sFrontToken` set but when we...
# support-questions-legacy
e
So, we are getting a
sFrontToken
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?
2 Views