pamapa

Results 412 comments of pamapa

Can you explain why [this](https://authts.github.io/oidc-client-ts/#md:custom-state-in-user-object) is not working? - You have access to `signinRedirect` and `user` object

`auth.removeUser();` returns a `Promise`, which you ignore, fixing that might solve your issue

The component passed into `withAuthenticationRequired` will be protected.

Have you tried `onSigninCallback`? See https://github.com/authts/react-oidc-context/blob/main/src/AuthProvider.tsx#L42

> If I think correctly, I need access to this method via useAuth hook: You can register your own function of `onSigninCallback` via setttings into the auth context ` console.log(user)}...

You will need to debug/log you application. You can enable logging like described here: https://authts.github.io/oidc-client-ts/#md:logging

> what do you think? It's a no from me as this seems like a use case well outside of any of the specs or the current [BCP](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-browser-based-apps). > >...

Currently that is not possible. You would need to provide a MR to add such a functionality. Also i am not so sure that this would be the correct location....

Might be a timing issue on your side or IdP side. Either debug or log what is happening and also verify the network traffic. For logging see https://authts.github.io/oidc-client-ts/#md:logging

> It seems to be due to the fact the `StrictMode` runs `useEffect` twice, which aborts the navigation, which causes as `NS_BINDING_ABORTED` error in Firefox. `StrictMode` runs `useEffect` twice only...