@capgo/capacitor-social-login 0.0.68-alpha.2 → 0.0.68-alpha.6
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 +28 -20
- package/android/src/main/java/ee/forgr/capacitor/social/login/GoogleProvider.java +397 -297
- package/android/src/main/java/ee/forgr/capacitor/social/login/SocialLoginPlugin.java +14 -1
- package/dist/docs.json +38 -14
- package/dist/esm/definitions.d.ts +13 -6
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +1 -0
- package/dist/esm/web.js +137 -90
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +137 -90
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +137 -90
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/SocialLoginPlugin/GoogleProvider.swift +64 -9
- package/ios/Sources/SocialLoginPlugin/SocialLoginPlugin.swift +54 -23
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -340,19 +340,19 @@ Refresh the access token
|
|
|
340
340
|
|
|
341
341
|
#### InitializeOptions
|
|
342
342
|
|
|
343
|
-
| Prop | Type
|
|
344
|
-
| -------------- |
|
|
345
|
-
| **`facebook`** | <code>{ appId: string; clientToken: string; }</code>
|
|
346
|
-
| **`google`** | <code>{ iOSClientId?: string; iOSServerClientId?: string; webClientId?: string; }</code> |
|
|
347
|
-
| **`apple`** | <code>{ clientId?: string; redirectUrl?: string; }</code>
|
|
343
|
+
| Prop | Type |
|
|
344
|
+
| -------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
345
|
+
| **`facebook`** | <code>{ appId: string; clientToken: string; }</code> |
|
|
346
|
+
| **`google`** | <code>{ iOSClientId?: string; iOSServerClientId?: string; webClientId?: string; mode?: 'online' \| 'offline'; }</code> |
|
|
347
|
+
| **`apple`** | <code>{ clientId?: string; redirectUrl?: string; }</code> |
|
|
348
348
|
|
|
349
349
|
|
|
350
350
|
#### LoginResult
|
|
351
351
|
|
|
352
|
-
| Prop | Type
|
|
353
|
-
| -------------- |
|
|
354
|
-
| **`provider`** | <code>'facebook' \| 'google' \| 'apple' \| 'twitter'</code>
|
|
355
|
-
| **`result`** | <code><a href="#facebookloginresponse">FacebookLoginResponse</a> \| <a href="#
|
|
352
|
+
| Prop | Type | Description |
|
|
353
|
+
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
|
|
354
|
+
| **`provider`** | <code>'facebook' \| 'google' \| 'apple' \| 'twitter'</code> | Provider |
|
|
355
|
+
| **`result`** | <code><a href="#facebookloginresponse">FacebookLoginResponse</a> \| <a href="#googleloginofflineresponse">GoogleLoginOfflineResponse</a> \| <a href="#googleloginonlineresponse">GoogleLoginOnlineResponse</a> \| <a href="#appleproviderresponse">AppleProviderResponse</a></code> | Payload |
|
|
356
356
|
|
|
357
357
|
|
|
358
358
|
#### FacebookLoginResponse
|
|
@@ -379,13 +379,21 @@ Refresh the access token
|
|
|
379
379
|
| **`userId`** | <code>string</code> |
|
|
380
380
|
|
|
381
381
|
|
|
382
|
-
####
|
|
382
|
+
#### GoogleLoginOfflineResponse
|
|
383
383
|
|
|
384
|
-
| Prop | Type
|
|
385
|
-
| -------------------- |
|
|
386
|
-
| **`
|
|
387
|
-
| **`
|
|
388
|
-
|
|
384
|
+
| Prop | Type |
|
|
385
|
+
| -------------------- | ---------------------- |
|
|
386
|
+
| **`serverAuthCode`** | <code>string</code> |
|
|
387
|
+
| **`responseType`** | <code>'offline'</code> |
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
#### GoogleLoginOnlineResponse
|
|
391
|
+
|
|
392
|
+
| Prop | Type |
|
|
393
|
+
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
394
|
+
| **`responseType`** | <code>'online'</code> |
|
|
395
|
+
| **`accessToken`** | <code><a href="#accesstoken">AccessToken</a> \| null</code> |
|
|
396
|
+
| **`profile`** | <code>{ email: string \| null; familyName: string \| null; givenName: string \| null; id: string \| null; name: string \| null; imageUrl: string \| null; } \| null</code> |
|
|
389
397
|
|
|
390
398
|
|
|
391
399
|
#### AppleProviderResponse
|
|
@@ -416,11 +424,11 @@ Refresh the access token
|
|
|
416
424
|
|
|
417
425
|
#### GoogleLoginOptions
|
|
418
426
|
|
|
419
|
-
| Prop
|
|
420
|
-
|
|
|
421
|
-
| **`scopes`**
|
|
422
|
-
| **`nonce`**
|
|
423
|
-
| **`
|
|
427
|
+
| Prop | Type | Description | Default | Since |
|
|
428
|
+
| ----------------------- | --------------------- | ---------------------------------------------------------------------------------------------------- | ------------------ | ----- |
|
|
429
|
+
| **`scopes`** | <code>string[]</code> | Specifies the scopes required for accessing Google APIs The default is defined in the configuration. | | |
|
|
430
|
+
| **`nonce`** | <code>string</code> | Nonce | | |
|
|
431
|
+
| **`forceRefreshToken`** | <code>boolean</code> | Set if your application requires to force the refreshToken [Android only] | <code>false</code> | 3.1.0 |
|
|
424
432
|
|
|
425
433
|
|
|
426
434
|
#### AppleProviderOptions
|