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

Make more event cases #77

Open
carvaofficial opened this issue Jun 14, 2024 · 1 comment
Open

Make more event cases #77

carvaofficial opened this issue Jun 14, 2024 · 1 comment

Comments

@carvaofficial
Copy link

When the button is clicked and the login() function is executed, we have no way to control the pop-up window closing situation. If you close it, there is no feedback for that case. Using AuthCodeFlowErrorResponse, this case cannot be managed.

It would be great to add more events for cases such as the window closing, an error occurring during the window launch, etc.

This event, for my needs, would be useful to manage the states of my custom button: if the button is clicked and the pop-up window has opened, I want to prevent the button from being pressed. In case the user closes the window, the event tells me so and then I can manage the button to re-enable it.

Tell me if you think it's a good idea to create more events like this.

Thanks for read me!!

@kasvith
Copy link
Collaborator

kasvith commented Jun 17, 2024

Hi @carvaofficial

have you tried using custom hooks?

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

No branches or pull requests

2 participants