This commit is contained in:
MartinBraquet
2025-10-28 16:56:45 +01:00
parent abef2b394e
commit f9ccd3628a

View File

@@ -6,6 +6,7 @@ import {getAuth, GoogleAuthProvider, OAuthProvider, signInWithCredential, signIn
import {safeLocalStorage} from '../util/local'
import {app} from './init'
import {SocialLogin} from "@capgo/capacitor-social-login";
import {Capacitor} from "@capacitor/core";
dayjs.extend(utc)
@@ -55,6 +56,10 @@ export async function googleNativeLogin() {
}
});
console.log('Done initializing SocialLogin')
console.log('Platform:', Capacitor.getPlatform())
console.log('URL origin:', window.location.origin)
// Run the native Google OAuth
const result: any = await SocialLogin.login({provider: 'google', options: {}})