Hi @dan.woda,
I went through that thread and the blog. I believe that this can be the solution, however I am not sure where to implement setSession()
and silentAuth()
methods as I am using the new React hook version of Auth0 wrapper. …I could also see in my react-auth0-wrapper.js
file that there is a function called getTokenSilently
. So probably I do not need to implement those two functions but use getTokenSilently instead?
If yes, where and how should I implement it?
Or it is already implemented in the Auth0Context.Provider?
<Auth0Context.Provider
value={{
isAuthenticated,
user,
loading,
popupOpen,
loginWithPopup,
handleRedirectCallback,
setSession,
silentAuth,
getIdTokenClaims: (...p) => auth0Client.getIdTokenClaims(...p),
loginWithRedirect: (...p) => auth0Client.loginWithRedirect(...p),
getTokenSilently: (...p) => auth0Client.getTokenSilently(...p),
getTokenWithPopup: (...p) => auth0Client.getTokenWithPopup(...p),
logout: (...p) => auth0Client.logout(...p)
}}
>
{children}
</Auth0Context.Provider>
If yes, then I probably still have the issue, as it is maybe not functioning.