oidc-react
oidc-react copied to clipboard
Distinguish between "not logged in" and "OIDC service not available"
Is there any was to distinguish between "not logged in" and "OIDC service not available"? When the OIDC service is not available, I see the following error in the console:
The user is not forwarded to the login page, and with the useAuth
-hook, I can only determine whether a user is logged in or not.
Is there any way to show an error, that the login service is not available?
Thank you so much for posting this!
Sure enough, this is something we probably need to improve on. I'm not sure what errors oidc-client
(the underlying package) throws in these cases, but there should, sure enough, be better than this. Have you tried an error boundary, just to catch the ones you have? I would love to hear about your findings. (Hadn't had time to check on this myself)
Hey, it's been a while since we saw an update on this issue. @boldt, would you be interested in looking into ways we can improve on this in this library?
Closing this as stale, let me know if you want to work on it, and I'll open it again! 👍