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

How to handle when user cancel log in? #1

Open
QuangAnh84 opened this issue Apr 10, 2020 · 4 comments
Open

How to handle when user cancel log in? #1

QuangAnh84 opened this issue Apr 10, 2020 · 4 comments

Comments

@QuangAnh84
Copy link

Dear all,

How can I handle when user cancel login (press back button)?

Many thanks,
Q.A

@cenezoic123
Copy link

Same issue here, I hope it will be answered..

@deanbot
Copy link

deanbot commented May 23, 2021

throw new Exception("Access denied or authentation canceled.");
this gets hit but the exception isn't caught by anything. Perhaps it doesn't make it out of the WebView. I'm thinking flutter_aad_oauth could throw here
code = await _onCode.first;
if code is empty, otherwise there's need to observe the navigator popping the login modal route.

deanbot added a commit to deanbot/flutter_aad_oauth that referenced this issue May 24, 2021
@deanbot
Copy link

deanbot commented May 24, 2021

Fyi, the fix was slightly different than I thought. PR submitted.

@codemaster-mo
Copy link

Can this be merged and a new version be released?

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

4 participants