Merge pull request #149 from donetick/fix-login-with-google-2

fix(ios): register Google Sign-In URL scheme to prevent launch crash
This commit is contained in:
Mohamad Tarbin
2026-07-16 19:41:03 -04:00
committed by GitHub
3 changed files with 13 additions and 17 deletions

View File

@@ -2,15 +2,17 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.nfc.readersession.formats</key>
<array>
<string>TAG</string>
</array>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.applesignin</key>
<array>
<string>Default</string>
</array>
<key>com.apple.developer.nfc.readersession.formats</key>
<array>
<string>NDEF</string>
<string>PACE</string>
<string>TAG</string>
</array>
</dict>
</plist>

View File

@@ -20,15 +20,6 @@
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>com.googleusercontent.apps.682262497914-5dacpk46qcc1494lood6ch8ul9c83kop</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>LSRequiresIPhoneOS</key>
@@ -78,6 +69,12 @@
<string>donetick</string>
</array>
</dict>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>com.googleusercontent.apps.682262497914-5dacpk46qcc1494lood6ch8ul9c83kop</string>
</array>
</dict>
</array>
</dict>
</plist>

View File

@@ -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'] },