bjerkio / oidc-react

React component to provide OpenID Connect and OAuth2 protocol support. 🌳
MIT License
326 stars 68 forks source link

addUserSignedOut is not fired #1060

Open jeevasusej opened 2 months ago

jeevasusej commented 2 months ago

I have used like follow in the component. const oidcData = useAuth();

But the addUserSignedOut is not fired.

  useEffect(()=>{
      oidcData?.userManager?.events?.addUserSignedOut(() => {
        debugger;
        console.log(`User Signed Out - Event triggred at ${new Date()}`);
        handleLogout();
      });
  },[]);
### Tasks
braaar commented 1 month ago

Could you provide a full reproduction of this?