Skip to content

Commit

Permalink
Reverted Google auth functionality for legacy use (#3617)
Browse files Browse the repository at this point in the history
* Reverted Google auth functionality for legacy use

Because we are not focusing on adding Firebase authentication, we should revert this module to use the old Google API console.
Google auth being a part of Firebase was important for using firebase invites, which is now deprecated 🙃
This revert will account for users working in Expo vs unmanaged/standalone. There will be some repetitive functionality but considering how many issues have been opened, I think it'll be fine.

* Update Google.ts

* Update GoogleScreen.js

* Update GoogleScreen.js

* Fixed google issues

* Update packages/expo/src/Google/Google.ts

Co-Authored-By: EvanBacon <baconbrix@gmail.com>

* Update Google.ts
  • Loading branch information
EvanBacon committed Mar 9, 2019
1 parent cb1d64c commit 78d4df1
Show file tree
Hide file tree
Showing 3 changed files with 295 additions and 90 deletions.
17 changes: 16 additions & 1 deletion apps/native-component-list/screens/GoogleScreen.js
Expand Up @@ -4,6 +4,18 @@ import { Alert, View } from 'react-native';

import Button from '../components/Button';

// bundle ID: host.exp.exponent
const IOS_KEY = '29635966244-v8mbqt2mtno71thelt7f2i6pob104f6e.apps.googleusercontent.com';
// bundle ID: app.json: expo.ios.bundleIdentifier
const IOS_STANDALONE_KEY =
'29635966244-td9jmh1m5trn8uuqa0je1mansia76cln.apps.googleusercontent.com';
// package: host.exp.exponent
const ANDROID_CLIENT_KEY =
'29635966244-knmlpr1upnv6rs4bumqea7hpit4o7kg2.apps.googleusercontent.com';
// package: app.json: expo.android.package
const ANDROID_STANDALONE_KEY =
'29635966244-eql85q7fpnjncjcp6o3t3n98mgeeklc9.apps.googleusercontent.com';

export default class GoogleLoginScreen extends React.Component {
static navigationOptions = {
title: 'Google',
Expand All @@ -20,7 +32,10 @@ export default class GoogleLoginScreen extends React.Component {
_testGoogleLogin = async () => {
try {
const result = await Google.logInAsync({
clientId: '603386649315-vp4revvrcgrcjme51ebuhbkbspl048l9.apps.googleusercontent.com',
iosClientId: IOS_KEY,
iosStandaloneAppClientId: IOS_STANDALONE_KEY,
androidClientId: ANDROID_CLIENT_KEY,
androidStandaloneAppClientId: ANDROID_STANDALONE_KEY,
});

const { type } = result;
Expand Down

0 comments on commit 78d4df1

Please sign in to comment.