ThexXTURBOXx / flutter_web_auth_2

Flutter plugin for authenticating a user with a web service
https://pub.dev/packages/flutter_web_auth_2
MIT License
51 stars 50 forks source link

Window.opener null in Version 3.0.0 and above #81

Closed TheRealNOIG closed 10 months ago

TheRealNOIG commented 11 months ago

Describe the bug

In version 3.0.0 and later of this library when redirecting to auth.html from auth server window.opener is set to null. However, in version 2.2.1 window.opener is set to the flutter window that started FlutterWebAuth2.authenticate which allows for flutter to read in the token when listing to window messages

Expected behavior

However, in version 2.2.1 window.opener is set to the flutter window that started FlutterWebAuth2.authenticate which allows for flutter to read in the token when listing to window messages

Device (please complete the following information!)

Checklist

TheRealNOIG commented 10 months ago

Hmm I think the issue was with the package manager as when I downloaded the git to another computer it worked with issue. Closing case