When I check the network requests, I can see that the correct id_token is being returned in the request(from the
/token endpoint). However, when I try to get it via the sdk, I get
undefined as the result.
My use case is this:
I have a user who is already logged into the tenant and the app. I check for an existing session using
getAccessTokenSilently method. Since that resolves successfully, I know that there is an existing session. Then I call the
getIdTokenClaims method in order to know which user it is. I expect the sdk to resolve only when it has found claims and not return
undefined. Is there anything I can tweak from the options?
I checked with embedded lock and there when I call the
lock.getUserInfo (after validating with
lock.checkSession), I am able to get the correct claims. Is there anything I can do in terms of passing extra parameters which could help me debug further.
Appreciate all the help!
Update: I tried the
auth0-spa-js library and I it works fine for me again so looks like this is definitely a problem with the react sdk