![]() Instead, I get this error when it loads: Access to fetch at '. They say that if you run the same page on a non debugged instance of Chrome, it'll work without issue. This is the issue that another user reported in the same thread:, but they didn't seem to file another ticket.Īfter looking some more, I this StackOverflow post. I put in my gmail address, and it sent me to, and said it could not sign me in safely. This time the Google sign-in popup opened and asked me for my email address. So I used flutter run -d chrome -web-port 5000. Now I understand better the comment in the GitHub issue mentioned above, where ditman shows a command to run the project at a predefined port. Please go to and whitelist this origin for your project's client ID.) However, upon clicking my Sign-in button, it throw this error: cb=gapi.loaded_0:163 Uncaught Error: PlatformException(google_sign_in, idpiframe_initialization_failed, Not a valid origin for the client: has not been whitelisted for client ID. This is the first time that I see such a domain name. The ticket explains you have to open it at localhost instead of. It turns out, running the project by running flutter run -d chrome will open the page at an URL that looks like this: where 12345 is a random port. Time to run the project again.īoom! Another error: : Invalid cookiePolicy I found the key that Firebase created for me when I created a web client for the same project, so I added the meta field. It redirected me to the Cloud Console's credentials page. I selected mine and it said I had no credential yet. It has a neat feature where if you click on it, it shows you a popup that lists your Cloud projects. I didn't even know what this ID might look like.Ī web search got me to this Google developers page. That's weird because the docs didn't mention that. Upon running, it threw an exception telling me that I should set a value for google-signin-client_id in a meta field. It gave me instructions to copy/paste into my index.html. Then I went to the Firebase Console to add the web project to my app. ![]() I set up the project to support web (see post). ![]() I have a Flutter app that uses Firebase Auth with Google Sign-in. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |