You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ComposeAuth/README.md
+47Lines changed: 47 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,3 +97,50 @@ Here is a small guide on how to use Native Google Auth on Android:
97
97
4. Create OAuth credentials for an Android app, and put in your package name and SHA-1 certificate (which you can get by using `gradlew signingReport`)
98
98
5. Put the Android OAuth client id to the authorized client ids in the Supabase Dashboard
99
99
6. Use the **Web** OAuth client id in the Compose Auth plugin
100
+
101
+
# Native Google Auth on iOS
102
+
Before start, make sure your iOS app works well first, it would be easier to isolate the issue from this step to resolve
103
+
1. Create a project in your [Google Cloud Developer Console](https://console.cloud.google.com/)
104
+
2. Create OAuth credentials for a Web application, iOS version
105
+
3. Put in Client ID of Web OAuth, Apple OAuth in your Supabase Auth Settings for Google in the Dashboard
106
+
4. Set up XCode 26
107
+
Add Client ID and Reversed Client ID (Retrieved from iOS OAuth details on Google Console). Your `Info.plist` will look like this:
108
+
```swift
109
+
<dict>
110
+
<key>CFBundleIdentifier</key>
111
+
<string>io.github.jan.supabase.ios</string>
112
+
<key>GIDClientID</key>
113
+
<string>YOUR_CLIENT_ID</string>
114
+
<key>CADisableMinimumFrameDurationOnPhone</key>
115
+
<true/>
116
+
<key>CFBundleURLTypes</key>
117
+
<array>
118
+
<dict>
119
+
<key>CFBundleTypeRole</key>
120
+
<string>Editor</string>
121
+
<key>CFBundleURLSchemes</key>
122
+
<array>
123
+
<string>YOUR_REVERSED_CLIENT_ID</string>
124
+
</array>
125
+
</dict>
126
+
</array>
127
+
</dict>
128
+
```
129
+
130
+
5. Download `exportedNativeBridge` at `/ComposeAuth/exportedNativeBridge` in this repository
131
+
In XCode, add it as dependency
132
+
Step 1: Right click on the left tool bar > Select Add dependencies
133
+
<imgwidth="750"height="509"alt="Screenshot 2025-11-01 at 00 38 41"src="https://github.com/user-attachments/assets/3b0f1b05-8946-43bf-b46b-e21ed70b811b" />
134
+
135
+
Step 2: From opened dialog > Add local
136
+
<imgwidth="750"height="618"alt="Screenshot 2025-10-30 at 21 10 28"src="https://github.com/user-attachments/assets/fa35f129-a3b1-4403-9e92-682738f1ada6" />
137
+
138
+
Step 3: Continue Add package
139
+
140
+
<imgwidth="750"height="632"alt="Screenshot 2025-11-01 at 00 38 51"src="https://github.com/user-attachments/assets/92b709fa-57d2-41b5-b066-e391f132231c" />
141
+
142
+
Step 4: Add GoogleSignIn 9.0.0 or the one compatible with your project as below:
143
+
<imgwidth="750"height="452"alt="Screenshot 2025-11-02 at 20 51 45"src="https://github.com/user-attachments/assets/7bdcd805-c3a6-4500-ace9-f5a389cdabdf" />
0 commit comments