You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tested that. The accessTokenPayload is null. It seems to be correct. The scope is actually a property of tokens. However the scope is missing in the tokens type.
I'd like to read
scope
value fromaccess token
and value ofexpiresAt
.First I tried to get
accessTokenPayload
usinguseOidcAccessToken()
like thisbut
accessTokenPayload
wasundefined
all the time whileaccessToken
had a value.With version 5.x I used
This worked, until version 6.x where
Oidc.get()
started to throw an exception. And it isn't mentioned the in breaking changes.I changed code to use OidcClient.get() instead
but still wondering if this is a correct way if we have hooks and actually why
useOidcAccessToken()
returnsaccessTokenPayload
withundefined
value.Is this a proper way how to do that?
"@axa-fr/react-oidc": "7.15.4",
The text was updated successfully, but these errors were encountered: