File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,8 @@ async function generatePKCE() {
6868 return { codeVerifier, codeChallenge} ;
6969}
7070
71- export const GOOGLE_CLIENT_ID = '253367029065-khkj31qt22l0vc3v754h09vhpg6t33ad.apps.googleusercontent.com'
71+ // export const WEB_GOOGLE_CLIENT_ID = '253367029065-khkj31qt22l0vc3v754h09vhpg6t33ad.apps.googleusercontent.com'
72+ export const ANDROID_GOOGLE_CLIENT_ID = '253367029065-s9sr5vqgkhc8f7p5s6ti6a4chqsrqgc4.apps.googleusercontent.com'
7273
7374/**
7475 * Authenticates a Firebase client running a webview APK on Android with Google OAuth.
@@ -85,7 +86,7 @@ export async function webviewGoogleSignin() {
8586 localStorage . setItem ( 'pkce_verifier' , codeVerifier ) ;
8687
8788 const params = new URLSearchParams ( {
88- client_id : GOOGLE_CLIENT_ID ,
89+ client_id : ANDROID_GOOGLE_CLIENT_ID ,
8990 redirect_uri : 'com.compassmeet:/auth' , // your deep link
9091 response_type : 'code' ,
9192 scope : 'openid email profile' ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import clsx from 'clsx'
1212import { initTracking } from 'web/lib/service/analytics'
1313import WebPush from "web/lib/service/web-push" ;
1414import AndroidPush from "web/lib/service/android-push" ;
15- import { GOOGLE_CLIENT_ID , isAndroidWebView } from "web/lib/firebase/users" ;
15+ import { ANDROID_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 : GOOGLE_CLIENT_ID ,
87+ client_id : ANDROID_GOOGLE_CLIENT_ID ,
8888 code,
8989 code_verifier : codeVerifier ! ,
9090 redirect_uri : 'com.compassmeet:/auth' ,
You can’t perform that action at this time.
0 commit comments