I
I
Ivan Huk2021-01-07 13:50:33
React Native
Ivan Huk, 2021-01-07 13:50:33

How to make authorization through google and fb on react-native (expo)?

I am making a mobile application with authorization through social networks. networks.
and ran into a problem: when I try to authorize, I get a 400 error: I
5ff6e70fe72ed008925207.png
use expo:

import * as Google from 'expo-google-app-auth';

const signInWithGoogleAsync = async () => {

            const result = await Google.logInAsync({
                behavior: "web",
                iosClientId: 'MY_CLIENT_ID',
                scopes: ['profile', 'email', 'openid'],
            });

            console.log( result )

    }


I do not know in which direction to dig (

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question