When you run your example app, or any other implementation, it is not possible to give a valid callbackUrlScheme for windows, as windows needs a scheme that matchs RegEx() and you check the scheme before with RegEx, it is not possible to start a windows authentication.
To Reproduce
Steps to reproduce the behavior:
Go to 'example/lib/main.dart'
Run the app
Click on 'Authenticate'
See error
Expected behavior
It is possible to add a callbackUrlScheme for windows that matchs the RegEx from the plattform implementation.
Device (please complete the following information!)
Device: Windows PC
OS: Windows
flutter_web_auth_2 version: 2.0.1
Additional context
/flutter_web_auth_2/lib/flutter_web_auth_2.dart in line 62 and flutter_web_auth_2/lib/src/flutter_web_auth_2_windows.dart line 66 close each other.
Describe the bug
When you run your example app, or any other implementation, it is not possible to give a valid callbackUrlScheme for windows, as windows needs a scheme that matchs
RegEx()
and you check the scheme before withRegEx
, it is not possible to start a windows authentication.To Reproduce
Steps to reproduce the behavior:
Expected behavior
It is possible to add a callbackUrlScheme for windows that matchs the RegEx from the plattform implementation.
Device (please complete the following information!)
flutter_web_auth_2
version: 2.0.1Additional context
/flutter_web_auth_2/lib/flutter_web_auth_2.dart in line 62 and flutter_web_auth_2/lib/src/flutter_web_auth_2_windows.dart line 66 close each other.
Fix
23 for the fix