@capgo/capacitor-social-login 7.9.0 → 7.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -211,7 +211,7 @@ await SocialLogin.initialize({
|
|
|
211
211
|
google: {
|
|
212
212
|
webClientId: 'YOUR_WEB_CLIENT_ID', // Required for Android and Web
|
|
213
213
|
iOSClientId: 'YOUR_IOS_CLIENT_ID', // Required for iOS
|
|
214
|
-
iOSServerClientId: 'YOUR_WEB_CLIENT_ID', // Required for iOS offline mode (same as webClientId)
|
|
214
|
+
iOSServerClientId: 'YOUR_WEB_CLIENT_ID', // Required for iOS offline mode and server authorization (same as webClientId)
|
|
215
215
|
mode: 'online', // 'online' or 'offline'
|
|
216
216
|
}
|
|
217
217
|
});
|
|
@@ -220,7 +220,7 @@ await SocialLogin.initialize({
|
|
|
220
220
|
**Important Notes:**
|
|
221
221
|
- `webClientId`: Required for Android and Web platforms
|
|
222
222
|
- `iOSClientId`: Required for iOS platform
|
|
223
|
-
- `iOSServerClientId`: Required
|
|
223
|
+
- `iOSServerClientId`: Required when using `mode: 'offline'` on iOS or when you need to verify the token on the server (should be the same value as `webClientId`)
|
|
224
224
|
- `mode: 'offline'`: Returns only `serverAuthCode` for backend authentication, no user profile data
|
|
225
225
|
- `mode: 'online'`: Returns user profile data and access tokens (default)
|
|
226
226
|
|