Firebase Authentication with googleAuth

Asked

Viewed 144 times

0

here is the code I am using to log in, the firebase account is configured to receive the login

Function signIn() { var Provider = new firebase.auth.Googleauthprovider(); firebase.auth(). signInWithPopup(Provider); }

popup arrives open, but when you select an account, the error appears

Error 403: restricted_client This application is not yet configured to make Oauth requests. To do this, set up the app’s Oauth consent screen in the Google Cloud Console.

but I saw some examples on youtube where you don’t need to do any configuration in Google Cloud Console, I don’t understand why it’s going wrong

1 answer

0

It is necessary to enable in the Firebase Console the login method using Google, otherwise Firebase will refuse authentication.

To enable, just do the following: Firebase console -> Authentication -> Login methods

Once you get there, just enable Google.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.