Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initialization check for signing #410

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

flgubler-ergon
Copy link

If the initialization is not complete when trying to sign in, the response from the identity-provider will be "lost" because no Notifier is registered with the @openid/appauth code.

This will lead to an infinite wait for the result of the login. That is quite time-consuming to debug. Therefore, an error should make things a lot easier for the programmer.

Maybe you can think of a more elegant solution. My point is just that there should be some mechanism to tell the developer that the service was used before being initialized...

flgubler-ergon and others added 2 commits January 28, 2025 14:11
If the initialization is not complete when trying to sign in, the response from the identity-provider will be "lost" because no `Notifier` is registered with the @openid/appauth code.

This will lead to an infinite wait for the result of the login. That is quite time-consuming to debug. Therefore, an error should make things a lot easier for the programmer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant