@capgo/capacitor-social-login 8.5.4 → 8.5.5

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/dist/docs.json CHANGED
@@ -30,12 +30,12 @@
30
30
  },
31
31
  {
32
32
  "name": "login",
33
- "signature": "<T extends \"apple\" | \"google\" | \"facebook\" | \"twitter\" | \"linkedin\" | \"oauth2\" | \"telegram\">(options: Extract<LoginOptions, { provider: T; }>) => Promise<{ provider: T; result: ProviderResponseMap[T]; }>",
33
+ "signature": "<T extends \"apple\" | \"google\" | \"facebook\" | \"twitter\" | \"linkedin\" | \"tiktok\" | \"oauth2\" | \"telegram\">(options: Extract<LoginOptions, { provider: T; }>) => Promise<{ provider: T; result: ProviderResponseMap[T]; }>",
34
34
  "parameters": [
35
35
  {
36
36
  "name": "options",
37
37
  "docs": "",
38
- "type": "Extract<{ provider: 'facebook'; options: FacebookLoginOptions; }, { provider: T; }> | Extract<{ provider: 'google'; options: GoogleLoginOptions; }, { provider: T; }> | Extract<{ provider: 'apple'; options: AppleProviderOptions; }, { provider: T; }> | Extract<{ provider: 'twitter'; options: TwitterLoginOptions; }, { provider: T; }> | Extract<{ provider: 'telegram'; options: TelegramLoginOptions; }, { provider: T; }> | Extract<{ provider: 'linkedin'; options: LinkedInLoginOptions; }, { provider: T; }> | Extract<{ provider: 'oauth2'; options: OAuth2LoginOptions; }, { provider: T; }>"
38
+ "type": "Extract<{ provider: 'facebook'; options: FacebookLoginOptions; }, { provider: T; }> | Extract<{ provider: 'google'; options: GoogleLoginOptions; }, { provider: T; }> | Extract<{ provider: 'apple'; options: AppleProviderOptions; }, { provider: T; }> | Extract<{ provider: 'twitter'; options: TwitterLoginOptions; }, { provider: T; }> | Extract<{ provider: 'telegram'; options: TelegramLoginOptions; }, { provider: T; }> | Extract<{ provider: 'linkedin'; options: LinkedInLoginOptions; }, { provider: T; }> | Extract<{ provider: 'tiktok'; options: TikTokLoginOptions; }, { provider: T; }> | Extract<{ provider: 'oauth2'; options: OAuth2LoginOptions; }, { provider: T; }>"
39
39
  }
40
40
  ],
41
41
  "returns": "Promise<{ provider: T; result: ProviderResponseMap[T]; }>",
@@ -56,12 +56,12 @@
56
56
  },
57
57
  {
58
58
  "name": "logout",
59
- "signature": "(options: { provider: 'apple' | 'google' | 'facebook' | 'twitter' | 'telegram' | 'linkedin' | 'oauth2'; providerId?: string; }) => Promise<void>",
59
+ "signature": "(options: { provider: 'apple' | 'google' | 'facebook' | 'twitter' | 'telegram' | 'linkedin' | 'tiktok' | 'oauth2'; providerId?: string; }) => Promise<void>",
60
60
  "parameters": [
61
61
  {
62
62
  "name": "options",
63
63
  "docs": "",
64
- "type": "{ provider: 'apple' | 'google' | 'facebook' | 'twitter' | 'linkedin' | 'oauth2' | 'telegram'; providerId?: string | undefined; }"
64
+ "type": "{ provider: 'apple' | 'google' | 'facebook' | 'twitter' | 'linkedin' | 'tiktok' | 'oauth2' | 'telegram'; providerId?: string | undefined; }"
65
65
  }
66
66
  ],
67
67
  "returns": "Promise<void>",
@@ -173,7 +173,7 @@
173
173
  ],
174
174
  "returns": "Promise<OAuth2LoginResponse>",
175
175
  "tags": [],
176
- "docs": "OAuth2 refresh-token helper (feature parity with Capawesome OAuth).\n\nScope:\n- Applies to the built-in `oauth2` provider and the LinkedIn convenience wrapper.\n- Requires a token endpoint (either `accessTokenEndpoint`/`tokenEndpoint` or `issuerUrl` discovery).\n\nSecurity note:\n- This does not validate JWT signatures. It only exchanges/refreshes tokens.\n\nIf `refreshToken` is omitted, the plugin will attempt to use the stored refresh token (if available).",
176
+ "docs": "OAuth2 refresh-token helper (feature parity with Capawesome OAuth).\n\nScope:\n- Applies to the built-in `oauth2` provider and the LinkedIn and TikTok convenience wrappers.\n- Requires a token endpoint (either `accessTokenEndpoint`/`tokenEndpoint` or `issuerUrl` discovery).\n\nSecurity note:\n- This does not validate JWT signatures. It only exchanges/refreshes tokens.\n\nIf `refreshToken` is omitted, the plugin will attempt to use the stored refresh token (if available).",
177
177
  "complexTypes": [
178
178
  "OAuth2LoginResponse",
179
179
  "RefreshTokenOptions"
@@ -385,6 +385,15 @@
385
385
  ],
386
386
  "type": "LinkedInProviderConfig"
387
387
  },
388
+ {
389
+ "name": "tiktok",
390
+ "tags": [],
391
+ "docs": "TikTok Login Kit configuration.\nConvenience wrapper that maps to the OAuth2 provider using TikTok defaults (`client_key`).",
392
+ "complexTypes": [
393
+ "TikTokProviderConfig"
394
+ ],
395
+ "type": "TikTokProviderConfig"
396
+ },
388
397
  {
389
398
  "name": "twitter",
390
399
  "tags": [],
@@ -485,7 +494,31 @@
485
494
  {
486
495
  "name": "clientSecret",
487
496
  "tags": [],
488
- "docs": "OAuth 2.0 client secret for token requests (e.g., when exchanging the code).\nThis value is sent as `client_secret` in token/refresh requests when provided.",
497
+ "docs": "OAuth 2.0 client secret for token requests (e.g., when exchanging the code).\nWhen provided, this value is sent using `clientSecretParamName` (default `client_secret`).",
498
+ "complexTypes": [],
499
+ "type": "string | undefined"
500
+ },
501
+ {
502
+ "name": "clientIdParamName",
503
+ "tags": [
504
+ {
505
+ "text": "'client_id'",
506
+ "name": "default"
507
+ }
508
+ ],
509
+ "docs": "Override the client identifier parameter name used for authorization and token requests.\nSome providers (e.g. TikTok) expect `client_key` instead of the default `client_id`.",
510
+ "complexTypes": [],
511
+ "type": "string | undefined"
512
+ },
513
+ {
514
+ "name": "clientSecretParamName",
515
+ "tags": [
516
+ {
517
+ "text": "'client_secret'",
518
+ "name": "default"
519
+ }
520
+ ],
521
+ "docs": "Override the client secret parameter name used for token requests.\nUseful for providers that expect a different parameter name.",
489
522
  "complexTypes": [],
490
523
  "type": "string | undefined"
491
524
  },
@@ -759,6 +792,98 @@
759
792
  }
760
793
  ]
761
794
  },
795
+ {
796
+ "name": "TikTokProviderConfig",
797
+ "slug": "tiktokproviderconfig",
798
+ "docs": "TikTok Login Kit configuration (convenience wrapper around the generic OAuth2 provider).\n\nUses TikTok OAuth 2.0 endpoints and `client_key` instead of `client_id`.",
799
+ "tags": [
800
+ {
801
+ "text": "https ://developers.tiktok.com/doc/login-kit-web",
802
+ "name": "see"
803
+ }
804
+ ],
805
+ "methods": [],
806
+ "properties": [
807
+ {
808
+ "name": "clientKey",
809
+ "tags": [
810
+ {
811
+ "text": "'aw3y*****'",
812
+ "name": "example"
813
+ }
814
+ ],
815
+ "docs": "TikTok client key (also known as app key).",
816
+ "complexTypes": [],
817
+ "type": "string"
818
+ },
819
+ {
820
+ "name": "redirectUrl",
821
+ "tags": [
822
+ {
823
+ "text": "'myapp://auth/tiktok'",
824
+ "name": "example"
825
+ }
826
+ ],
827
+ "docs": "Redirect URL registered in your TikTok developer app.",
828
+ "complexTypes": [],
829
+ "type": "string"
830
+ },
831
+ {
832
+ "name": "clientSecret",
833
+ "tags": [],
834
+ "docs": "TikTok client secret. Optional.\nWhen set, the plugin includes it on token and refresh requests.\nOn web this value is stored with the OAuth2 config.\nLogin always exchanges the authorization code in the plugin; the raw code is not returned to the app.",
835
+ "complexTypes": [],
836
+ "type": "string | undefined"
837
+ },
838
+ {
839
+ "name": "scopes",
840
+ "tags": [
841
+ {
842
+ "text": "['user.info.basic']",
843
+ "name": "default"
844
+ },
845
+ {
846
+ "text": "['user.info.basic','video.list']",
847
+ "name": "example"
848
+ }
849
+ ],
850
+ "docs": "Scopes to request during login. Arrays are sent as a comma-separated string (TikTok Login Kit).",
851
+ "complexTypes": [],
852
+ "type": "string[] | undefined"
853
+ },
854
+ {
855
+ "name": "scope",
856
+ "tags": [],
857
+ "docs": "Alias for `scopes`.",
858
+ "complexTypes": [],
859
+ "type": "string | string[] | undefined"
860
+ },
861
+ {
862
+ "name": "pkceEnabled",
863
+ "tags": [
864
+ {
865
+ "text": "true",
866
+ "name": "default"
867
+ }
868
+ ],
869
+ "docs": "Toggle PKCE usage during the authorization code flow.",
870
+ "complexTypes": [],
871
+ "type": "boolean | undefined"
872
+ },
873
+ {
874
+ "name": "logsEnabled",
875
+ "tags": [
876
+ {
877
+ "text": "false",
878
+ "name": "default"
879
+ }
880
+ ],
881
+ "docs": "Enable verbose debug logging for the TikTok OAuth2 flow.",
882
+ "complexTypes": [],
883
+ "type": "boolean | undefined"
884
+ }
885
+ ]
886
+ },
762
887
  {
763
888
  "name": "FacebookLoginResponse",
764
889
  "slug": "facebookloginresponse",
@@ -1733,6 +1858,55 @@
1733
1858
  }
1734
1859
  ]
1735
1860
  },
1861
+ {
1862
+ "name": "TikTokLoginOptions",
1863
+ "slug": "tiktokloginoptions",
1864
+ "docs": "",
1865
+ "tags": [],
1866
+ "methods": [],
1867
+ "properties": [
1868
+ {
1869
+ "name": "scopes",
1870
+ "tags": [
1871
+ {
1872
+ "text": "['user.info.basic']",
1873
+ "name": "example"
1874
+ }
1875
+ ],
1876
+ "docs": "Optional scopes to override the initialization scopes.",
1877
+ "complexTypes": [],
1878
+ "type": "string[] | undefined"
1879
+ },
1880
+ {
1881
+ "name": "scope",
1882
+ "tags": [],
1883
+ "docs": "Alias for `scopes`.",
1884
+ "complexTypes": [],
1885
+ "type": "string | string[] | undefined"
1886
+ },
1887
+ {
1888
+ "name": "state",
1889
+ "tags": [],
1890
+ "docs": "Custom state parameter for CSRF protection.",
1891
+ "complexTypes": [],
1892
+ "type": "string | undefined"
1893
+ },
1894
+ {
1895
+ "name": "codeVerifier",
1896
+ "tags": [],
1897
+ "docs": "Custom PKCE code verifier (mostly for testing).",
1898
+ "complexTypes": [],
1899
+ "type": "string | undefined"
1900
+ },
1901
+ {
1902
+ "name": "redirectUrl",
1903
+ "tags": [],
1904
+ "docs": "Override redirect URL for this login request.",
1905
+ "complexTypes": [],
1906
+ "type": "string | undefined"
1907
+ }
1908
+ ]
1909
+ },
1736
1910
  {
1737
1911
  "name": "isLoggedInOptions",
1738
1912
  "slug": "isloggedinoptions",
@@ -1750,7 +1924,7 @@
1750
1924
  ],
1751
1925
  "docs": "Provider",
1752
1926
  "complexTypes": [],
1753
- "type": "'apple' | 'google' | 'facebook' | 'twitter' | 'linkedin' | 'oauth2' | 'telegram'"
1927
+ "type": "'apple' | 'google' | 'facebook' | 'twitter' | 'linkedin' | 'tiktok' | 'oauth2' | 'telegram'"
1754
1928
  },
1755
1929
  {
1756
1930
  "name": "providerId",
@@ -1816,7 +1990,7 @@
1816
1990
  ],
1817
1991
  "docs": "Provider",
1818
1992
  "complexTypes": [],
1819
- "type": "'apple' | 'google' | 'facebook' | 'twitter' | 'linkedin' | 'oauth2'"
1993
+ "type": "'apple' | 'google' | 'facebook' | 'twitter' | 'linkedin' | 'tiktok' | 'oauth2'"
1820
1994
  },
1821
1995
  {
1822
1996
  "name": "providerId",
@@ -2059,7 +2233,7 @@
2059
2233
  "docs": "",
2060
2234
  "types": [
2061
2235
  {
2062
- "text": "{\n facebook: FacebookLoginResponse;\n google: GoogleLoginResponse;\n apple: AppleProviderResponse;\n twitter: TwitterLoginResponse;\n telegram: TelegramLoginResponse;\n linkedin: LinkedInLoginResponse;\n oauth2: OAuth2LoginResponse;\n}",
2236
+ "text": "{\n facebook: FacebookLoginResponse;\n google: GoogleLoginResponse;\n apple: AppleProviderResponse;\n twitter: TwitterLoginResponse;\n telegram: TelegramLoginResponse;\n linkedin: LinkedInLoginResponse;\n tiktok: TikTokLoginResponse;\n oauth2: OAuth2LoginResponse;\n}",
2063
2237
  "complexTypes": [
2064
2238
  "FacebookLoginResponse",
2065
2239
  "GoogleLoginResponse",
@@ -2067,6 +2241,7 @@
2067
2241
  "TwitterLoginResponse",
2068
2242
  "TelegramLoginResponse",
2069
2243
  "LinkedInLoginResponse",
2244
+ "TikTokLoginResponse",
2070
2245
  "OAuth2LoginResponse"
2071
2246
  ]
2072
2247
  }
@@ -2104,6 +2279,19 @@
2104
2279
  }
2105
2280
  ]
2106
2281
  },
2282
+ {
2283
+ "name": "TikTokLoginResponse",
2284
+ "slug": "tiktokloginresponse",
2285
+ "docs": "TikTok login response (same shape as generic OAuth2).",
2286
+ "types": [
2287
+ {
2288
+ "text": "OAuth2LoginResponse",
2289
+ "complexTypes": [
2290
+ "OAuth2LoginResponse"
2291
+ ]
2292
+ }
2293
+ ]
2294
+ },
2107
2295
  {
2108
2296
  "name": "LoginOptions",
2109
2297
  "slug": "loginoptions",
@@ -2145,6 +2333,12 @@
2145
2333
  "LinkedInLoginOptions"
2146
2334
  ]
2147
2335
  },
2336
+ {
2337
+ "text": "{\n provider: 'tiktok';\n options: TikTokLoginOptions;\n }",
2338
+ "complexTypes": [
2339
+ "TikTokLoginOptions"
2340
+ ]
2341
+ },
2148
2342
  {
2149
2343
  "text": "{\n provider: 'oauth2';\n options: OAuth2LoginOptions;\n }",
2150
2344
  "complexTypes": [
@@ -2229,7 +2423,7 @@
2229
2423
  {
2230
2424
  "name": "RefreshTokenOptions",
2231
2425
  "slug": "refreshtokenoptions",
2232
- "docs": "Options for `refreshToken()`.\n`providerId` is required for generic `oauth2` and ignored for LinkedIn.",
2426
+ "docs": "Options for `refreshToken()`.\n`providerId` is required for generic `oauth2` and ignored for LinkedIn and TikTok.",
2233
2427
  "types": [
2234
2428
  {
2235
2429
  "text": "{\n provider: 'oauth2';\n providerId: string;\n refreshToken?: string;\n additionalParameters?: Record<string, string>;\n }",
@@ -2242,6 +2436,12 @@
2242
2436
  "complexTypes": [
2243
2437
  "Record"
2244
2438
  ]
2439
+ },
2440
+ {
2441
+ "text": "{\n provider: 'tiktok';\n providerId?: string;\n refreshToken?: string;\n additionalParameters?: Record<string, string>;\n }",
2442
+ "complexTypes": [
2443
+ "Record"
2444
+ ]
2245
2445
  }
2246
2446
  ]
2247
2447
  },
@@ -2286,6 +2486,12 @@
2286
2486
  "LinkedInLoginResponse"
2287
2487
  ]
2288
2488
  },
2489
+ {
2490
+ "text": "{\n provider: 'tiktok';\n result: TikTokLoginResponse;\n }",
2491
+ "complexTypes": [
2492
+ "TikTokLoginResponse"
2493
+ ]
2494
+ },
2289
2495
  {
2290
2496
  "text": "{\n provider: 'oauth2';\n result: OAuth2LoginResponse;\n }",
2291
2497
  "complexTypes": [
@@ -39,9 +39,21 @@ export interface OAuth2ProviderConfig {
39
39
  authorizationEndpoint?: string;
40
40
  /**
41
41
  * OAuth 2.0 client secret for token requests (e.g., when exchanging the code).
42
- * This value is sent as `client_secret` in token/refresh requests when provided.
42
+ * When provided, this value is sent using `clientSecretParamName` (default `client_secret`).
43
43
  */
44
44
  clientSecret?: string;
45
+ /**
46
+ * Override the client identifier parameter name used for authorization and token requests.
47
+ * Some providers (e.g. TikTok) expect `client_key` instead of the default `client_id`.
48
+ * @default 'client_id'
49
+ */
50
+ clientIdParamName?: string;
51
+ /**
52
+ * Override the client secret parameter name used for token requests.
53
+ * Useful for providers that expect a different parameter name.
54
+ * @default 'client_secret'
55
+ */
56
+ clientSecretParamName?: string;
45
57
  /**
46
58
  * The URL to exchange the authorization code for tokens
47
59
  * Required for authorization code flow
@@ -192,9 +204,54 @@ export interface LinkedInProviderConfig extends OAuth2ProviderConfig {
192
204
  */
193
205
  clientSecret?: string;
194
206
  }
207
+ /**
208
+ * TikTok Login Kit configuration (convenience wrapper around the generic OAuth2 provider).
209
+ *
210
+ * Uses TikTok OAuth 2.0 endpoints and `client_key` instead of `client_id`.
211
+ * @see https://developers.tiktok.com/doc/login-kit-web
212
+ */
213
+ export interface TikTokProviderConfig {
214
+ /**
215
+ * TikTok client key (also known as app key).
216
+ * @example 'aw3y*****'
217
+ */
218
+ clientKey: string;
219
+ /**
220
+ * Redirect URL registered in your TikTok developer app.
221
+ * @example 'myapp://auth/tiktok'
222
+ */
223
+ redirectUrl: string;
224
+ /**
225
+ * TikTok client secret. Optional.
226
+ * When set, the plugin includes it on token and refresh requests.
227
+ * On web this value is stored with the OAuth2 config.
228
+ * Login always exchanges the authorization code in the plugin; the raw code is not returned to the app.
229
+ */
230
+ clientSecret?: string;
231
+ /**
232
+ * Scopes to request during login. Arrays are sent as a comma-separated string (TikTok Login Kit).
233
+ * @default ['user.info.basic']
234
+ * @example ['user.info.basic','video.list']
235
+ */
236
+ scopes?: string[];
237
+ /**
238
+ * Alias for `scopes`.
239
+ */
240
+ scope?: string | string[];
241
+ /**
242
+ * Toggle PKCE usage during the authorization code flow.
243
+ * @default true
244
+ */
245
+ pkceEnabled?: boolean;
246
+ /**
247
+ * Enable verbose debug logging for the TikTok OAuth2 flow.
248
+ * @default false
249
+ */
250
+ logsEnabled?: boolean;
251
+ }
195
252
  /**
196
253
  * Options for `refreshToken()`.
197
- * `providerId` is required for generic `oauth2` and ignored for LinkedIn.
254
+ * `providerId` is required for generic `oauth2` and ignored for LinkedIn and TikTok.
198
255
  */
199
256
  export type RefreshTokenOptions = {
200
257
  provider: 'oauth2';
@@ -206,6 +263,11 @@ export type RefreshTokenOptions = {
206
263
  providerId?: string;
207
264
  refreshToken?: string;
208
265
  additionalParameters?: Record<string, string>;
266
+ } | {
267
+ provider: 'tiktok';
268
+ providerId?: string;
269
+ refreshToken?: string;
270
+ additionalParameters?: Record<string, string>;
209
271
  };
210
272
  export interface InitializeOptions {
211
273
  /**
@@ -256,6 +318,11 @@ export interface InitializeOptions {
256
318
  * Convenience wrapper that maps to the OAuth2 provider using LinkedIn defaults.
257
319
  */
258
320
  linkedin?: LinkedInProviderConfig;
321
+ /**
322
+ * TikTok Login Kit configuration.
323
+ * Convenience wrapper that maps to the OAuth2 provider using TikTok defaults (`client_key`).
324
+ */
325
+ tiktok?: TikTokProviderConfig;
259
326
  twitter?: {
260
327
  /**
261
328
  * The OAuth 2.0 client identifier issued by X (Twitter) Developer Portal
@@ -586,6 +653,29 @@ export interface OAuth2LoginOptions {
586
653
  * `providerId` is set to `linkedin` automatically.
587
654
  */
588
655
  export type LinkedInLoginOptions = Omit<OAuth2LoginOptions, 'providerId'>;
656
+ export interface TikTokLoginOptions {
657
+ /**
658
+ * Optional scopes to override the initialization scopes.
659
+ * @example ['user.info.basic']
660
+ */
661
+ scopes?: string[];
662
+ /**
663
+ * Alias for `scopes`.
664
+ */
665
+ scope?: string | string[];
666
+ /**
667
+ * Custom state parameter for CSRF protection.
668
+ */
669
+ state?: string;
670
+ /**
671
+ * Custom PKCE code verifier (mostly for testing).
672
+ */
673
+ codeVerifier?: string;
674
+ /**
675
+ * Override redirect URL for this login request.
676
+ */
677
+ redirectUrl?: string;
678
+ }
589
679
  export interface OAuth2LoginResponse {
590
680
  /**
591
681
  * The provider ID that was used for this login
@@ -625,6 +715,10 @@ export interface OAuth2LoginResponse {
625
715
  * LinkedIn login response (returned when using the LinkedIn convenience API).
626
716
  */
627
717
  export type LinkedInLoginResponse = OAuth2LoginResponse;
718
+ /**
719
+ * TikTok login response (same shape as generic OAuth2).
720
+ */
721
+ export type TikTokLoginResponse = OAuth2LoginResponse;
628
722
  export interface GoogleLoginOptions {
629
723
  /**
630
724
  * Specifies the scopes required for accessing Google APIs
@@ -827,6 +921,9 @@ export type LoginOptions = {
827
921
  } | {
828
922
  provider: 'linkedin';
829
923
  options: LinkedInLoginOptions;
924
+ } | {
925
+ provider: 'tiktok';
926
+ options: TikTokLoginOptions;
830
927
  } | {
831
928
  provider: 'oauth2';
832
929
  options: OAuth2LoginOptions;
@@ -849,6 +946,9 @@ export type LoginResult = {
849
946
  } | {
850
947
  provider: 'linkedin';
851
948
  result: LinkedInLoginResponse;
949
+ } | {
950
+ provider: 'tiktok';
951
+ result: TikTokLoginResponse;
852
952
  } | {
853
953
  provider: 'oauth2';
854
954
  result: OAuth2LoginResponse;
@@ -977,7 +1077,7 @@ export interface AuthorizationCodeOptions {
977
1077
  * Provider
978
1078
  * @description Provider for the authorization code
979
1079
  */
980
- provider: 'apple' | 'google' | 'facebook' | 'twitter' | 'linkedin' | 'oauth2';
1080
+ provider: 'apple' | 'google' | 'facebook' | 'twitter' | 'linkedin' | 'tiktok' | 'oauth2';
981
1081
  /**
982
1082
  * Provider ID for OAuth2 providers (required when provider is 'oauth2')
983
1083
  * @description The ID used when configuring the OAuth2 provider in initialize()
@@ -989,7 +1089,7 @@ export interface isLoggedInOptions {
989
1089
  * Provider
990
1090
  * @description Provider for the isLoggedIn
991
1091
  */
992
- provider: 'apple' | 'google' | 'facebook' | 'twitter' | 'telegram' | 'linkedin' | 'oauth2';
1092
+ provider: 'apple' | 'google' | 'facebook' | 'twitter' | 'telegram' | 'linkedin' | 'tiktok' | 'oauth2';
993
1093
  /**
994
1094
  * Provider ID for OAuth2 providers (required when provider is 'oauth2')
995
1095
  * @description The ID used when configuring the OAuth2 provider in initialize()
@@ -1135,6 +1235,7 @@ export type ProviderResponseMap = {
1135
1235
  twitter: TwitterLoginResponse;
1136
1236
  telegram: TelegramLoginResponse;
1137
1237
  linkedin: LinkedInLoginResponse;
1238
+ tiktok: TikTokLoginResponse;
1138
1239
  oauth2: OAuth2LoginResponse;
1139
1240
  };
1140
1241
  /**
@@ -1185,7 +1286,7 @@ export interface SocialLoginPlugin {
1185
1286
  * @throws Error if Google provider is in offline mode
1186
1287
  */
1187
1288
  logout(options: {
1188
- provider: 'apple' | 'google' | 'facebook' | 'twitter' | 'telegram' | 'linkedin' | 'oauth2';
1289
+ provider: 'apple' | 'google' | 'facebook' | 'twitter' | 'telegram' | 'linkedin' | 'tiktok' | 'oauth2';
1189
1290
  providerId?: string;
1190
1291
  }): Promise<void>;
1191
1292
  /**
@@ -1237,7 +1338,7 @@ export interface SocialLoginPlugin {
1237
1338
  * OAuth2 refresh-token helper (feature parity with Capawesome OAuth).
1238
1339
  *
1239
1340
  * Scope:
1240
- * - Applies to the built-in `oauth2` provider and the LinkedIn convenience wrapper.
1341
+ * - Applies to the built-in `oauth2` provider and the LinkedIn and TikTok convenience wrappers.
1241
1342
  * - Requires a token endpoint (either `accessTokenEndpoint`/`tokenEndpoint` or `issuerUrl` discovery).
1242
1343
  *
1243
1344
  * Security note: