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
53 stars 54 forks source link

[flutter_web_auth] sign in with goolge faild . #4

Closed Joseph-Nathan closed 2 years ago

Joseph-Nathan commented 2 years ago

when move to browser i get this Error

Error 400: redirect_uri_mismatch you can't sign in to this app because it doesn't comply with google's oauth 2.0 policy ,

but i check redirect_uri in my [ firebase auth , google cloud console , my app ] it's a same , i can't find the problem , should i add Authorized JavaScript origins to google cloud console , i used the package from android app .

ThexXTURBOXx commented 2 years ago

Please follow the issue template. Otherwise I am not able to reproduce your problem.

Joseph-Nathan commented 2 years ago

sorry , i solve this by replace : 'redirect_uri' : '$callbackUrlScheme:/' , by : 'redirect_uri' : callbackUrlScheme ,

, but i get this error after i choose google account : Unable to process request due to missing initial state. This may happen if browser sessionStorage is inaccessible or accidentally cleared.

Joseph-Nathan commented 2 years ago

i think this Error from my backend "Firebase" not from this package , thanks bro for wonderful package , and if you get any solution i'm ready to hear .

Joseph-Nathan commented 2 years ago

can we used web-view instead of external tab ??

ThexXTURBOXx commented 2 years ago

The new problem seems to be related to something other then this package.

Related to the external tab problem: That would be a nice feature request. Could you maybe create a new issue for that such that I can keep track of this? :)