Skip to content

Commit b6ed2c7

Browse files
committed
Change GOOGLE_CLIENT_ID
1 parent 74c7c5c commit b6ed2c7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

web/lib/firebase/users.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ async function generatePKCE() {
6868
return {codeVerifier, codeChallenge};
6969
}
7070

71-
// export const WEB_GOOGLE_CLIENT_ID = '253367029065-khkj31qt22l0vc3v754h09vhpg6t33ad.apps.googleusercontent.com'
71+
export const WEB_GOOGLE_CLIENT_ID = '253367029065-khkj31qt22l0vc3v754h09vhpg6t33ad.apps.googleusercontent.com'
7272
export const ANDROID_GOOGLE_CLIENT_ID = '253367029065-s9sr5vqgkhc8f7p5s6ti6a4chqsrqgc4.apps.googleusercontent.com'
73+
export const GOOGLE_CLIENT_ID = WEB_GOOGLE_CLIENT_ID
7374

7475
/**
7576
* Authenticates a Firebase client running a webview APK on Android with Google OAuth.
@@ -86,7 +87,7 @@ export async function webviewGoogleSignin() {
8687
localStorage.setItem('pkce_verifier', codeVerifier);
8788

8889
const params = new URLSearchParams({
89-
client_id: ANDROID_GOOGLE_CLIENT_ID,
90+
client_id: GOOGLE_CLIENT_ID,
9091
redirect_uri: 'com.compassmeet:/auth', // your deep link
9192
response_type: 'code',
9293
scope: 'openid email profile',

web/pages/_app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import clsx from 'clsx'
1212
import {initTracking} from 'web/lib/service/analytics'
1313
import WebPush from "web/lib/service/web-push";
1414
import AndroidPush from "web/lib/service/android-push";
15-
import {ANDROID_GOOGLE_CLIENT_ID, isAndroidWebView} from "web/lib/firebase/users";
15+
import {GOOGLE_CLIENT_ID, isAndroidWebView} from "web/lib/firebase/users";
1616

1717
// See https://nextjs.org/docs/basic-features/font-optimization#google-fonts
1818
// and if you add a font, you must add it to tailwind config as well for it to work.
@@ -84,7 +84,7 @@ function MyApp({Component, pageProps}: AppProps<PageProps>) {
8484
method: 'POST',
8585
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
8686
body: new URLSearchParams({
87-
client_id: ANDROID_GOOGLE_CLIENT_ID,
87+
client_id: GOOGLE_CLIENT_ID,
8888
code,
8989
code_verifier: codeVerifier!,
9090
redirect_uri: 'com.compassmeet:/auth',

0 commit comments

Comments
 (0)