fix(ios): register Google Sign-In URL scheme to prevent launch crash
Merge duplicate CFBundleURLTypes entries in Info.plist so the Google reversed-client-ID scheme and the donetick deep-link scheme coexist. The second entry was overriding the first, causing GIDSignIn to throw NSInvalidArgumentException for a missing URL scheme.
This commit is contained in:
@@ -701,10 +701,7 @@ const LoginView = () => {
|
||||
sx={{ mt: 3, mb: 2 }}
|
||||
onClick={async () => {
|
||||
try {
|
||||
// Clear any cached session so the account picker shows
|
||||
await SocialLogin.logout({ provider: 'google' }).catch(
|
||||
() => {},
|
||||
)
|
||||
|
||||
const user = await SocialLogin.login({
|
||||
provider: 'google',
|
||||
options: { scopes: ['profile', 'email', 'openid'] },
|
||||
|
||||
Reference in New Issue
Block a user