Melih Yumak
1 min readSep 30, 2019

--

Hello Gokhan. Thank you for your response. I am sharing that response in English because if there is someone else want to have same question as you have i think that would be helpful to everyone.

You asked me to release new article about the new versions of expo and expo-google-app-auth.

I look at the release notes at the latest version of expo but they are still using the same functionality for this process.

import { Google } from 'expo';

const config = {
expoClientId: `<YOUR_WEB_CLIENT_ID>`,
iosClientId: `<YOUR_IOS_CLIENT_ID>`,
androidClientId: `<YOUR_ANDROID_CLIENT_ID>`,
iosStandaloneAppClientId: `<YOUR_IOS_CLIENT_ID>`,
androidStandaloneAppClientId: `<YOUR_ANDROID_CLIENT_ID>`,
};
const { type, accessToken } = await Google.logInAsync(config);

if (type === 'success') {
/* Log-Out */
await Google.logOutAsync({ accessToken, ...config });
/* `accessToken` is now invalid and cannot be used to get data from the Google API with HTTP requests */
}

That is the another example i can give you about that topic and i suggest you to look at the documentation https://docs.expo.io/versions/latest/sdk/google/

Please let me know if you have any another questions later on.

--

--

Melih Yumak
Melih Yumak

Written by Melih Yumak

Top Technology Writer — Lead Full Stack Software Engineer — Youtuber https://www.youtube.com/c/TechnologyandSoftware

No responses yet