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
Redirect url after login in Flutter web does not work #99
Comments
You need to follow exactly the steps in https://github.com/ThexXTURBOXx/flutter_web_auth_2?tab=readme-ov-file#web |
Why is http://localhost:5200/auth.html not a valid callbackUrlScheme ? It get's blocked by the _assertCallbackScheme function. The regex: RegExp(r'^[a-z][a-z\d+.-]*$') does not allow this: http://localhost:5200/auth.html. Can you give an example of a valid callbackUrlScheme on WEB ? If u use Microsoft you can't add a callbackUrlScheme in the settings without providing the prefix: http://... |
@stan-at-work Because you are supposed to provide a callback URL scheme, not a full URL. Your comment does also seem to be not related to this issue - so for the future, open an own issue for that. |
Thanks, that works. You should really consider adding this to the documentation: Web: callbackscheme = 'http' This would help ALLOT. Thanks for the quick response :-) |
Description
I'm trying to provide login using package in a web application. I open the link I created and log in, but the tab is closed and I cannot receive the code I expect. I couldn't understand what I was missing.
Minimal Reproduction
Steps to reproduce the behaviour:
Exception or Error
It does not redirect after login and the expected code is not returned
Expected Behaviour
Redirect after login and continue from the first tab
Screenshots
Additional context
No response
Device
Mac
OS
MacOS
Browser
Chrome
Flutter version
Channel stable, 3.13.5,
flutter_web_auth_2 version
flutter_web_auth_2 3.1.1
Checklist
The text was updated successfully, but these errors were encountered: