D
D
Denioo2020-10-10 15:24:25
React Native
Denioo, 2020-10-10 15:24:25

Google authorization in expo (firebase)?

Good afternoon, which day I'm racking my brains over authorization in expo through Google.
I use expo-google-app-auth
Here is the code:

const result = await Google.logInAsync({
            androidClientId: env.androidClientId,
            iosClientId: env.iosClientId,
            scopes: ['profile', 'email']
        })

        const credential = await firebase.auth.GoogleAuthProvider.credential(result.idToken, result.accessToken)

        await fire.auth().signInWithCredential(credential)

Authorization window opens but user doesn't register in firebase after selecting mail.

P.S. Error is returned:
[Error: {"error":{"code":400,"message":"API key expired. Please renew the API key.","errors":[{"message":"API key expired. Please renew the API key.","domain":"global","reason":"badRequest"}],"status":"INVALID_ARGUMENT"}}]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denioo, 2020-10-11
@Denioo

The problem was solved by recreating the web config in firebase. But this is a finger to the sky and just lucky.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question