oidc-react icon indicating copy to clipboard operation
oidc-react copied to clipboard

Hook does not work

Open boldt opened this issue 3 years ago • 1 comments

The hook descibed in the guides does not work (any more?) as it is documented. I called:

const auth = useAuth();

This is the result of auth, and as you can see, there is no profile, which is used in the hook-guide:

grafik

In the onSignIn after the login I do see the profile.

boldt avatar Jan 05 '22 12:01 boldt

Did you set loadUserInfo to true?

<AuthProvider /* (Other options) */ loadUserInfo>
    <App />
</AuthProvider>

mr-perseus avatar Jan 10 '22 14:01 mr-perseus

This issue seems to have gone stale.

I'm closing this now, but feel free to open a new issue or let me know if this should be reopened :)

simenandre avatar Mar 01 '23 19:03 simenandre