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,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'
7272export 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' ,
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 { 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' ,
You can’t perform that action at this time.
0 commit comments