@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 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 | Description |
353
- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
354
- | **`provider`** | <code>'facebook' \| 'google' \| 'apple' \| 'twitter'</code> | Provider |
355
- | **`result`** | <code><a href="#facebookloginresponse">FacebookLoginResponse</a> \| <a href="#googleloginresponse">GoogleLoginResponse</a> \| <a href="#appleproviderresponse">AppleProviderResponse</a></code> | Payload |
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
- #### GoogleLoginResponse
382
+ #### GoogleLoginOfflineResponse
383
383
 
384
- | Prop | Type |
385
- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
386
- | **`accessToken`** | <code><a href="#accesstoken">AccessToken</a> \| null</code> |
387
- | **`serverAuthCode`** | <code>string \| null</code> |
388
- | **`profile`** | <code>{ email: string \| null; familyName: string \| null; givenName: string \| null; id: string \| null; name: string \| null; imageUrl: string \| null; } \| null</code> |
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 | Type | Description | Default | Since |
420
- | ------------------------ | --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ------------------ | ----- |
421
- | **`scopes`** | <code>string[]</code> | Specifies the scopes required for accessing Google APIs The default is defined in the configuration. | | |
422
- | **`nonce`** | <code>string</code> | Nonce | | |
423
- | **`grantOfflineAccess`** | <code>boolean</code> | Set if your application needs to refresh access tokens when the user is not present at the browser. In response use `serverAuthCode` key | <code>false</code> | 3.1.0 |
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