@better-auth/core 1.7.0-beta.7 → 1.7.0-beta.9
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/api/index.d.mts +3 -3
- package/dist/context/global.mjs +1 -1
- package/dist/db/adapter/factory.mjs +1 -1
- package/dist/db/get-tables.mjs +3 -3
- package/dist/db/schema/account.d.mts +1 -1
- package/dist/db/schema/account.mjs +1 -1
- package/dist/error/codes.d.mts +0 -5
- package/dist/error/codes.mjs +0 -5
- package/dist/instrumentation/tracer.mjs +1 -1
- package/dist/oauth2/create-authorization-url.d.mts +1 -4
- package/dist/oauth2/create-authorization-url.mjs +1 -4
- package/dist/oauth2/index.d.mts +3 -4
- package/dist/oauth2/index.mjs +2 -3
- package/dist/oauth2/oauth-provider.d.mts +12 -50
- package/dist/oauth2/refresh-access-token.mjs +2 -1
- package/dist/oauth2/utils.d.mts +6 -1
- package/dist/oauth2/utils.mjs +24 -2
- package/dist/oauth2/verify-id-token.d.mts +6 -5
- package/dist/oauth2/verify-id-token.mjs +2 -2
- package/dist/social-providers/apple.d.mts +1 -5
- package/dist/social-providers/apple.mjs +5 -5
- package/dist/social-providers/atlassian.d.mts +1 -5
- package/dist/social-providers/atlassian.mjs +4 -4
- package/dist/social-providers/cognito.d.mts +1 -5
- package/dist/social-providers/cognito.mjs +11 -18
- package/dist/social-providers/discord.d.mts +1 -5
- package/dist/social-providers/discord.mjs +6 -7
- package/dist/social-providers/dropbox.d.mts +1 -5
- package/dist/social-providers/dropbox.mjs +5 -5
- package/dist/social-providers/facebook.d.mts +1 -5
- package/dist/social-providers/facebook.mjs +5 -5
- package/dist/social-providers/figma.d.mts +1 -5
- package/dist/social-providers/figma.mjs +5 -5
- package/dist/social-providers/github.d.mts +1 -5
- package/dist/social-providers/github.mjs +4 -4
- package/dist/social-providers/gitlab.d.mts +1 -5
- package/dist/social-providers/gitlab.mjs +6 -6
- package/dist/social-providers/google.d.mts +8 -10
- package/dist/social-providers/google.mjs +12 -13
- package/dist/social-providers/huggingface.d.mts +1 -5
- package/dist/social-providers/huggingface.mjs +8 -8
- package/dist/social-providers/index.d.mts +35 -177
- package/dist/social-providers/kakao.d.mts +1 -5
- package/dist/social-providers/kakao.mjs +8 -8
- package/dist/social-providers/kick.d.mts +1 -5
- package/dist/social-providers/kick.mjs +4 -4
- package/dist/social-providers/line.d.mts +1 -5
- package/dist/social-providers/line.mjs +10 -10
- package/dist/social-providers/linear.d.mts +1 -5
- package/dist/social-providers/linear.mjs +4 -4
- package/dist/social-providers/linkedin.d.mts +1 -5
- package/dist/social-providers/linkedin.mjs +10 -10
- package/dist/social-providers/microsoft-entra-id.d.mts +1 -5
- package/dist/social-providers/microsoft-entra-id.mjs +10 -11
- package/dist/social-providers/naver.d.mts +1 -5
- package/dist/social-providers/naver.mjs +4 -4
- package/dist/social-providers/notion.d.mts +1 -5
- package/dist/social-providers/notion.mjs +4 -4
- package/dist/social-providers/paybin.d.mts +1 -5
- package/dist/social-providers/paybin.mjs +10 -10
- package/dist/social-providers/paypal.d.mts +1 -5
- package/dist/social-providers/paypal.mjs +2 -8
- package/dist/social-providers/polar.d.mts +1 -5
- package/dist/social-providers/polar.mjs +8 -8
- package/dist/social-providers/railway.d.mts +1 -5
- package/dist/social-providers/railway.mjs +9 -9
- package/dist/social-providers/reddit.d.mts +1 -5
- package/dist/social-providers/reddit.mjs +5 -5
- package/dist/social-providers/roblox.d.mts +1 -5
- package/dist/social-providers/roblox.mjs +5 -5
- package/dist/social-providers/salesforce.d.mts +1 -5
- package/dist/social-providers/salesforce.mjs +8 -8
- package/dist/social-providers/slack.d.mts +1 -5
- package/dist/social-providers/slack.mjs +9 -9
- package/dist/social-providers/spotify.d.mts +1 -5
- package/dist/social-providers/spotify.mjs +5 -5
- package/dist/social-providers/tiktok.d.mts +1 -5
- package/dist/social-providers/tiktok.mjs +5 -9
- package/dist/social-providers/twitch.d.mts +1 -5
- package/dist/social-providers/twitch.mjs +4 -4
- package/dist/social-providers/twitter.d.mts +1 -5
- package/dist/social-providers/twitter.mjs +9 -9
- package/dist/social-providers/vercel.d.mts +1 -5
- package/dist/social-providers/vercel.mjs +7 -4
- package/dist/social-providers/vk.d.mts +1 -5
- package/dist/social-providers/vk.mjs +5 -5
- package/dist/social-providers/wechat.d.mts +1 -5
- package/dist/social-providers/wechat.mjs +5 -9
- package/dist/social-providers/zoom.d.mts +1 -6
- package/dist/social-providers/zoom.mjs +9 -15
- package/dist/types/context.d.mts +6 -2
- package/package.json +1 -1
- package/src/db/get-tables.ts +3 -8
- package/src/db/schema/account.ts +5 -14
- package/src/error/codes.ts +0 -5
- package/src/oauth2/create-authorization-url.ts +1 -1
- package/src/oauth2/index.ts +2 -12
- package/src/oauth2/oauth-provider.ts +11 -56
- package/src/oauth2/refresh-access-token.ts +3 -2
- package/src/oauth2/utils.ts +39 -1
- package/src/oauth2/verify-id-token.ts +7 -5
- package/src/social-providers/apple.ts +8 -13
- package/src/social-providers/atlassian.ts +8 -12
- package/src/social-providers/cognito.ts +11 -18
- package/src/social-providers/discord.ts +8 -19
- package/src/social-providers/dropbox.ts +7 -13
- package/src/social-providers/facebook.ts +9 -13
- package/src/social-providers/figma.ts +9 -13
- package/src/social-providers/github.ts +8 -12
- package/src/social-providers/gitlab.ts +8 -14
- package/src/social-providers/google.ts +23 -29
- package/src/social-providers/huggingface.ts +8 -12
- package/src/social-providers/kakao.ts +8 -16
- package/src/social-providers/kick.ts +7 -12
- package/src/social-providers/line.ts +10 -14
- package/src/social-providers/linear.ts +6 -12
- package/src/social-providers/linkedin.ts +10 -14
- package/src/social-providers/microsoft-entra-id.ts +8 -18
- package/src/social-providers/naver.ts +6 -12
- package/src/social-providers/notion.ts +6 -12
- package/src/social-providers/paybin.ts +11 -14
- package/src/social-providers/paypal.ts +8 -6
- package/src/social-providers/polar.ts +8 -12
- package/src/social-providers/railway.ts +9 -13
- package/src/social-providers/reddit.ts +7 -18
- package/src/social-providers/roblox.ts +7 -18
- package/src/social-providers/salesforce.ts +8 -12
- package/src/social-providers/slack.ts +9 -18
- package/src/social-providers/spotify.ts +7 -13
- package/src/social-providers/tiktok.ts +7 -13
- package/src/social-providers/twitch.ts +8 -12
- package/src/social-providers/twitter.ts +8 -17
- package/src/social-providers/vercel.ts +10 -16
- package/src/social-providers/vk.ts +7 -13
- package/src/social-providers/wechat.ts +8 -20
- package/src/social-providers/zoom.ts +6 -19
- package/src/types/context.ts +8 -2
- package/dist/oauth2/scopes.d.mts +0 -76
- package/dist/oauth2/scopes.mjs +0 -96
- package/src/oauth2/scopes.ts +0 -118
|
@@ -43,7 +43,6 @@ declare const socialProviders: {
|
|
|
43
43
|
apple: (options: AppleOptions) => {
|
|
44
44
|
id: "apple";
|
|
45
45
|
name: string;
|
|
46
|
-
callbackPath: string;
|
|
47
46
|
createAuthorizationURL({
|
|
48
47
|
state,
|
|
49
48
|
scopes,
|
|
@@ -58,10 +57,7 @@ declare const socialProviders: {
|
|
|
58
57
|
loginHint?: string | undefined;
|
|
59
58
|
idTokenNonce?: string | undefined;
|
|
60
59
|
additionalParams?: Record<string, string> | undefined;
|
|
61
|
-
}): Promise<
|
|
62
|
-
url: URL;
|
|
63
|
-
requestedScopes: string[];
|
|
64
|
-
}>;
|
|
60
|
+
}): Promise<URL>;
|
|
65
61
|
validateAuthorizationCode: ({
|
|
66
62
|
code,
|
|
67
63
|
codeVerifier,
|
|
@@ -105,7 +101,6 @@ declare const socialProviders: {
|
|
|
105
101
|
atlassian: (options: AtlassianOptions) => {
|
|
106
102
|
id: "atlassian";
|
|
107
103
|
name: string;
|
|
108
|
-
callbackPath: string;
|
|
109
104
|
createAuthorizationURL({
|
|
110
105
|
state,
|
|
111
106
|
scopes,
|
|
@@ -121,10 +116,7 @@ declare const socialProviders: {
|
|
|
121
116
|
loginHint?: string | undefined;
|
|
122
117
|
idTokenNonce?: string | undefined;
|
|
123
118
|
additionalParams?: Record<string, string> | undefined;
|
|
124
|
-
}): Promise<
|
|
125
|
-
url: URL;
|
|
126
|
-
requestedScopes: string[];
|
|
127
|
-
}>;
|
|
119
|
+
}): Promise<URL>;
|
|
128
120
|
validateAuthorizationCode: ({
|
|
129
121
|
code,
|
|
130
122
|
codeVerifier,
|
|
@@ -161,7 +153,6 @@ declare const socialProviders: {
|
|
|
161
153
|
cognito: (options: CognitoOptions) => {
|
|
162
154
|
id: "cognito";
|
|
163
155
|
name: string;
|
|
164
|
-
callbackPath: string;
|
|
165
156
|
createAuthorizationURL({
|
|
166
157
|
state,
|
|
167
158
|
scopes,
|
|
@@ -177,10 +168,7 @@ declare const socialProviders: {
|
|
|
177
168
|
loginHint?: string | undefined;
|
|
178
169
|
idTokenNonce?: string | undefined;
|
|
179
170
|
additionalParams?: Record<string, string> | undefined;
|
|
180
|
-
}): Promise<
|
|
181
|
-
url: URL;
|
|
182
|
-
requestedScopes: string[];
|
|
183
|
-
}>;
|
|
171
|
+
}): Promise<URL>;
|
|
184
172
|
validateAuthorizationCode: ({
|
|
185
173
|
code,
|
|
186
174
|
codeVerifier,
|
|
@@ -223,7 +211,6 @@ declare const socialProviders: {
|
|
|
223
211
|
discord: (options: DiscordOptions) => {
|
|
224
212
|
id: "discord";
|
|
225
213
|
name: string;
|
|
226
|
-
callbackPath: string;
|
|
227
214
|
createAuthorizationURL({
|
|
228
215
|
state,
|
|
229
216
|
scopes,
|
|
@@ -238,10 +225,7 @@ declare const socialProviders: {
|
|
|
238
225
|
loginHint?: string | undefined;
|
|
239
226
|
idTokenNonce?: string | undefined;
|
|
240
227
|
additionalParams?: Record<string, string> | undefined;
|
|
241
|
-
}): Promise<
|
|
242
|
-
url: URL;
|
|
243
|
-
requestedScopes: string[];
|
|
244
|
-
}>;
|
|
228
|
+
}): Promise<URL>;
|
|
245
229
|
validateAuthorizationCode: ({
|
|
246
230
|
code,
|
|
247
231
|
redirectURI
|
|
@@ -277,7 +261,6 @@ declare const socialProviders: {
|
|
|
277
261
|
facebook: (options: FacebookOptions) => {
|
|
278
262
|
id: "facebook";
|
|
279
263
|
name: string;
|
|
280
|
-
callbackPath: string;
|
|
281
264
|
createAuthorizationURL({
|
|
282
265
|
state,
|
|
283
266
|
scopes,
|
|
@@ -293,10 +276,7 @@ declare const socialProviders: {
|
|
|
293
276
|
loginHint?: string | undefined;
|
|
294
277
|
idTokenNonce?: string | undefined;
|
|
295
278
|
additionalParams?: Record<string, string> | undefined;
|
|
296
|
-
}): Promise<
|
|
297
|
-
url: URL;
|
|
298
|
-
requestedScopes: string[];
|
|
299
|
-
}>;
|
|
279
|
+
}): Promise<URL>;
|
|
300
280
|
validateAuthorizationCode: ({
|
|
301
281
|
code,
|
|
302
282
|
redirectURI
|
|
@@ -346,7 +326,6 @@ declare const socialProviders: {
|
|
|
346
326
|
figma: (options: FigmaOptions) => {
|
|
347
327
|
id: "figma";
|
|
348
328
|
name: string;
|
|
349
|
-
callbackPath: string;
|
|
350
329
|
createAuthorizationURL({
|
|
351
330
|
state,
|
|
352
331
|
scopes,
|
|
@@ -362,10 +341,7 @@ declare const socialProviders: {
|
|
|
362
341
|
loginHint?: string | undefined;
|
|
363
342
|
idTokenNonce?: string | undefined;
|
|
364
343
|
additionalParams?: Record<string, string> | undefined;
|
|
365
|
-
}): Promise<
|
|
366
|
-
url: URL;
|
|
367
|
-
requestedScopes: string[];
|
|
368
|
-
}>;
|
|
344
|
+
}): Promise<URL>;
|
|
369
345
|
validateAuthorizationCode: ({
|
|
370
346
|
code,
|
|
371
347
|
codeVerifier,
|
|
@@ -402,7 +378,6 @@ declare const socialProviders: {
|
|
|
402
378
|
github: (options: GithubOptions) => {
|
|
403
379
|
id: "github";
|
|
404
380
|
name: string;
|
|
405
|
-
callbackPath: string;
|
|
406
381
|
createAuthorizationURL({
|
|
407
382
|
state,
|
|
408
383
|
scopes,
|
|
@@ -419,10 +394,7 @@ declare const socialProviders: {
|
|
|
419
394
|
loginHint?: string | undefined;
|
|
420
395
|
idTokenNonce?: string | undefined;
|
|
421
396
|
additionalParams?: Record<string, string> | undefined;
|
|
422
|
-
}): Promise<
|
|
423
|
-
url: URL;
|
|
424
|
-
requestedScopes: string[];
|
|
425
|
-
}>;
|
|
397
|
+
}): Promise<URL>;
|
|
426
398
|
validateAuthorizationCode: ({
|
|
427
399
|
code,
|
|
428
400
|
codeVerifier,
|
|
@@ -459,7 +431,6 @@ declare const socialProviders: {
|
|
|
459
431
|
microsoft: (options: MicrosoftOptions) => {
|
|
460
432
|
id: "microsoft";
|
|
461
433
|
name: string;
|
|
462
|
-
callbackPath: string;
|
|
463
434
|
createAuthorizationURL(data: {
|
|
464
435
|
state: string;
|
|
465
436
|
codeVerifier: string;
|
|
@@ -469,10 +440,7 @@ declare const socialProviders: {
|
|
|
469
440
|
loginHint?: string | undefined;
|
|
470
441
|
idTokenNonce?: string | undefined;
|
|
471
442
|
additionalParams?: Record<string, string> | undefined;
|
|
472
|
-
}): Promise<
|
|
473
|
-
url: URL;
|
|
474
|
-
requestedScopes: string[];
|
|
475
|
-
}>;
|
|
443
|
+
}): Promise<URL>;
|
|
476
444
|
validateAuthorizationCode({
|
|
477
445
|
code,
|
|
478
446
|
codeVerifier,
|
|
@@ -516,8 +484,6 @@ declare const socialProviders: {
|
|
|
516
484
|
google: (options: GoogleOptions) => {
|
|
517
485
|
id: "google";
|
|
518
486
|
name: string;
|
|
519
|
-
callbackPath: string;
|
|
520
|
-
grantAuthority: "full-grant" | "projection";
|
|
521
487
|
createAuthorizationURL({
|
|
522
488
|
state,
|
|
523
489
|
scopes,
|
|
@@ -535,10 +501,7 @@ declare const socialProviders: {
|
|
|
535
501
|
loginHint?: string | undefined;
|
|
536
502
|
idTokenNonce?: string | undefined;
|
|
537
503
|
additionalParams?: Record<string, string> | undefined;
|
|
538
|
-
}): Promise<
|
|
539
|
-
url: URL;
|
|
540
|
-
requestedScopes: string[];
|
|
541
|
-
}>;
|
|
504
|
+
}): Promise<URL>;
|
|
542
505
|
validateAuthorizationCode: ({
|
|
543
506
|
code,
|
|
544
507
|
codeVerifier,
|
|
@@ -582,7 +545,6 @@ declare const socialProviders: {
|
|
|
582
545
|
huggingface: (options: HuggingFaceOptions) => {
|
|
583
546
|
id: "huggingface";
|
|
584
547
|
name: string;
|
|
585
|
-
callbackPath: string;
|
|
586
548
|
createAuthorizationURL({
|
|
587
549
|
state,
|
|
588
550
|
scopes,
|
|
@@ -598,10 +560,7 @@ declare const socialProviders: {
|
|
|
598
560
|
loginHint?: string | undefined;
|
|
599
561
|
idTokenNonce?: string | undefined;
|
|
600
562
|
additionalParams?: Record<string, string> | undefined;
|
|
601
|
-
}): Promise<
|
|
602
|
-
url: URL;
|
|
603
|
-
requestedScopes: string[];
|
|
604
|
-
}>;
|
|
563
|
+
}): Promise<URL>;
|
|
605
564
|
validateAuthorizationCode: ({
|
|
606
565
|
code,
|
|
607
566
|
codeVerifier,
|
|
@@ -638,7 +597,6 @@ declare const socialProviders: {
|
|
|
638
597
|
slack: (options: SlackOptions) => {
|
|
639
598
|
id: "slack";
|
|
640
599
|
name: string;
|
|
641
|
-
callbackPath: string;
|
|
642
600
|
createAuthorizationURL({
|
|
643
601
|
state,
|
|
644
602
|
scopes,
|
|
@@ -653,10 +611,7 @@ declare const socialProviders: {
|
|
|
653
611
|
loginHint?: string | undefined;
|
|
654
612
|
idTokenNonce?: string | undefined;
|
|
655
613
|
additionalParams?: Record<string, string> | undefined;
|
|
656
|
-
}): Promise<
|
|
657
|
-
url: URL;
|
|
658
|
-
requestedScopes: string[];
|
|
659
|
-
}>;
|
|
614
|
+
}): Promise<URL>;
|
|
660
615
|
validateAuthorizationCode: ({
|
|
661
616
|
code,
|
|
662
617
|
redirectURI
|
|
@@ -692,7 +647,6 @@ declare const socialProviders: {
|
|
|
692
647
|
spotify: (options: SpotifyOptions) => {
|
|
693
648
|
id: "spotify";
|
|
694
649
|
name: string;
|
|
695
|
-
callbackPath: string;
|
|
696
650
|
createAuthorizationURL({
|
|
697
651
|
state,
|
|
698
652
|
scopes,
|
|
@@ -708,10 +662,7 @@ declare const socialProviders: {
|
|
|
708
662
|
loginHint?: string | undefined;
|
|
709
663
|
idTokenNonce?: string | undefined;
|
|
710
664
|
additionalParams?: Record<string, string> | undefined;
|
|
711
|
-
}): Promise<
|
|
712
|
-
url: URL;
|
|
713
|
-
requestedScopes: string[];
|
|
714
|
-
}>;
|
|
665
|
+
}): Promise<URL>;
|
|
715
666
|
validateAuthorizationCode: ({
|
|
716
667
|
code,
|
|
717
668
|
codeVerifier,
|
|
@@ -748,7 +699,6 @@ declare const socialProviders: {
|
|
|
748
699
|
twitch: (options: TwitchOptions) => {
|
|
749
700
|
id: "twitch";
|
|
750
701
|
name: string;
|
|
751
|
-
callbackPath: string;
|
|
752
702
|
createAuthorizationURL({
|
|
753
703
|
state,
|
|
754
704
|
scopes,
|
|
@@ -763,10 +713,7 @@ declare const socialProviders: {
|
|
|
763
713
|
loginHint?: string | undefined;
|
|
764
714
|
idTokenNonce?: string | undefined;
|
|
765
715
|
additionalParams?: Record<string, string> | undefined;
|
|
766
|
-
}): Promise<
|
|
767
|
-
url: URL;
|
|
768
|
-
requestedScopes: string[];
|
|
769
|
-
}>;
|
|
716
|
+
}): Promise<URL>;
|
|
770
717
|
validateAuthorizationCode: ({
|
|
771
718
|
code,
|
|
772
719
|
redirectURI
|
|
@@ -802,7 +749,6 @@ declare const socialProviders: {
|
|
|
802
749
|
twitter: (options: TwitterOption) => {
|
|
803
750
|
id: "twitter";
|
|
804
751
|
name: string;
|
|
805
|
-
callbackPath: string;
|
|
806
752
|
createAuthorizationURL(data: {
|
|
807
753
|
state: string;
|
|
808
754
|
codeVerifier: string;
|
|
@@ -812,10 +758,7 @@ declare const socialProviders: {
|
|
|
812
758
|
loginHint?: string | undefined;
|
|
813
759
|
idTokenNonce?: string | undefined;
|
|
814
760
|
additionalParams?: Record<string, string> | undefined;
|
|
815
|
-
}): Promise<
|
|
816
|
-
url: URL;
|
|
817
|
-
requestedScopes: string[];
|
|
818
|
-
}>;
|
|
761
|
+
}): Promise<URL>;
|
|
819
762
|
validateAuthorizationCode: ({
|
|
820
763
|
code,
|
|
821
764
|
codeVerifier,
|
|
@@ -852,7 +795,6 @@ declare const socialProviders: {
|
|
|
852
795
|
dropbox: (options: DropboxOptions) => {
|
|
853
796
|
id: "dropbox";
|
|
854
797
|
name: string;
|
|
855
|
-
callbackPath: string;
|
|
856
798
|
createAuthorizationURL: ({
|
|
857
799
|
state,
|
|
858
800
|
scopes,
|
|
@@ -868,10 +810,7 @@ declare const socialProviders: {
|
|
|
868
810
|
loginHint?: string | undefined;
|
|
869
811
|
idTokenNonce?: string | undefined;
|
|
870
812
|
additionalParams?: Record<string, string> | undefined;
|
|
871
|
-
}) => Promise<
|
|
872
|
-
url: URL;
|
|
873
|
-
requestedScopes: string[];
|
|
874
|
-
}>;
|
|
813
|
+
}) => Promise<URL>;
|
|
875
814
|
validateAuthorizationCode: ({
|
|
876
815
|
code,
|
|
877
816
|
codeVerifier,
|
|
@@ -908,7 +847,6 @@ declare const socialProviders: {
|
|
|
908
847
|
kick: (options: KickOptions) => {
|
|
909
848
|
id: "kick";
|
|
910
849
|
name: string;
|
|
911
|
-
callbackPath: string;
|
|
912
850
|
createAuthorizationURL({
|
|
913
851
|
state,
|
|
914
852
|
scopes,
|
|
@@ -924,10 +862,7 @@ declare const socialProviders: {
|
|
|
924
862
|
loginHint?: string | undefined;
|
|
925
863
|
idTokenNonce?: string | undefined;
|
|
926
864
|
additionalParams?: Record<string, string> | undefined;
|
|
927
|
-
}): Promise<
|
|
928
|
-
url: URL;
|
|
929
|
-
requestedScopes: string[];
|
|
930
|
-
}>;
|
|
865
|
+
}): Promise<URL>;
|
|
931
866
|
validateAuthorizationCode({
|
|
932
867
|
code,
|
|
933
868
|
redirectURI,
|
|
@@ -964,7 +899,6 @@ declare const socialProviders: {
|
|
|
964
899
|
linear: (options: LinearOptions) => {
|
|
965
900
|
id: "linear";
|
|
966
901
|
name: string;
|
|
967
|
-
callbackPath: string;
|
|
968
902
|
createAuthorizationURL({
|
|
969
903
|
state,
|
|
970
904
|
scopes,
|
|
@@ -980,10 +914,7 @@ declare const socialProviders: {
|
|
|
980
914
|
loginHint?: string | undefined;
|
|
981
915
|
idTokenNonce?: string | undefined;
|
|
982
916
|
additionalParams?: Record<string, string> | undefined;
|
|
983
|
-
}): Promise<
|
|
984
|
-
url: URL;
|
|
985
|
-
requestedScopes: string[];
|
|
986
|
-
}>;
|
|
917
|
+
}): Promise<URL>;
|
|
987
918
|
validateAuthorizationCode: ({
|
|
988
919
|
code,
|
|
989
920
|
redirectURI
|
|
@@ -1019,7 +950,6 @@ declare const socialProviders: {
|
|
|
1019
950
|
linkedin: (options: LinkedInOptions) => {
|
|
1020
951
|
id: "linkedin";
|
|
1021
952
|
name: string;
|
|
1022
|
-
callbackPath: string;
|
|
1023
953
|
createAuthorizationURL: ({
|
|
1024
954
|
state,
|
|
1025
955
|
scopes,
|
|
@@ -1035,10 +965,7 @@ declare const socialProviders: {
|
|
|
1035
965
|
loginHint?: string | undefined;
|
|
1036
966
|
idTokenNonce?: string | undefined;
|
|
1037
967
|
additionalParams?: Record<string, string> | undefined;
|
|
1038
|
-
}) => Promise<
|
|
1039
|
-
url: URL;
|
|
1040
|
-
requestedScopes: string[];
|
|
1041
|
-
}>;
|
|
968
|
+
}) => Promise<URL>;
|
|
1042
969
|
validateAuthorizationCode: ({
|
|
1043
970
|
code,
|
|
1044
971
|
redirectURI
|
|
@@ -1074,7 +1001,6 @@ declare const socialProviders: {
|
|
|
1074
1001
|
gitlab: (options: GitlabOptions) => {
|
|
1075
1002
|
id: "gitlab";
|
|
1076
1003
|
name: string;
|
|
1077
|
-
callbackPath: string;
|
|
1078
1004
|
createAuthorizationURL: ({
|
|
1079
1005
|
state,
|
|
1080
1006
|
scopes,
|
|
@@ -1091,10 +1017,7 @@ declare const socialProviders: {
|
|
|
1091
1017
|
loginHint?: string | undefined;
|
|
1092
1018
|
idTokenNonce?: string | undefined;
|
|
1093
1019
|
additionalParams?: Record<string, string> | undefined;
|
|
1094
|
-
}) => Promise<
|
|
1095
|
-
url: URL;
|
|
1096
|
-
requestedScopes: string[];
|
|
1097
|
-
}>;
|
|
1020
|
+
}) => Promise<URL>;
|
|
1098
1021
|
validateAuthorizationCode: ({
|
|
1099
1022
|
code,
|
|
1100
1023
|
redirectURI,
|
|
@@ -1152,7 +1075,6 @@ declare const socialProviders: {
|
|
|
1152
1075
|
tiktok: (options: TiktokOptions) => {
|
|
1153
1076
|
id: "tiktok";
|
|
1154
1077
|
name: string;
|
|
1155
|
-
callbackPath: string;
|
|
1156
1078
|
createAuthorizationURL({
|
|
1157
1079
|
state,
|
|
1158
1080
|
scopes,
|
|
@@ -1167,10 +1089,7 @@ declare const socialProviders: {
|
|
|
1167
1089
|
loginHint?: string | undefined;
|
|
1168
1090
|
idTokenNonce?: string | undefined;
|
|
1169
1091
|
additionalParams?: Record<string, string> | undefined;
|
|
1170
|
-
}):
|
|
1171
|
-
url: URL;
|
|
1172
|
-
requestedScopes: string[];
|
|
1173
|
-
};
|
|
1092
|
+
}): URL;
|
|
1174
1093
|
validateAuthorizationCode: ({
|
|
1175
1094
|
code,
|
|
1176
1095
|
redirectURI
|
|
@@ -1206,7 +1125,6 @@ declare const socialProviders: {
|
|
|
1206
1125
|
reddit: (options: RedditOptions) => {
|
|
1207
1126
|
id: "reddit";
|
|
1208
1127
|
name: string;
|
|
1209
|
-
callbackPath: string;
|
|
1210
1128
|
createAuthorizationURL({
|
|
1211
1129
|
state,
|
|
1212
1130
|
scopes,
|
|
@@ -1221,10 +1139,7 @@ declare const socialProviders: {
|
|
|
1221
1139
|
loginHint?: string | undefined;
|
|
1222
1140
|
idTokenNonce?: string | undefined;
|
|
1223
1141
|
additionalParams?: Record<string, string> | undefined;
|
|
1224
|
-
}): Promise<
|
|
1225
|
-
url: URL;
|
|
1226
|
-
requestedScopes: string[];
|
|
1227
|
-
}>;
|
|
1142
|
+
}): Promise<URL>;
|
|
1228
1143
|
validateAuthorizationCode: ({
|
|
1229
1144
|
code,
|
|
1230
1145
|
redirectURI
|
|
@@ -1260,7 +1175,6 @@ declare const socialProviders: {
|
|
|
1260
1175
|
roblox: (options: RobloxOptions) => {
|
|
1261
1176
|
id: "roblox";
|
|
1262
1177
|
name: string;
|
|
1263
|
-
callbackPath: string;
|
|
1264
1178
|
createAuthorizationURL({
|
|
1265
1179
|
state,
|
|
1266
1180
|
scopes,
|
|
@@ -1275,10 +1189,7 @@ declare const socialProviders: {
|
|
|
1275
1189
|
loginHint?: string | undefined;
|
|
1276
1190
|
idTokenNonce?: string | undefined;
|
|
1277
1191
|
additionalParams?: Record<string, string> | undefined;
|
|
1278
|
-
}): Promise<
|
|
1279
|
-
url: URL;
|
|
1280
|
-
requestedScopes: string[];
|
|
1281
|
-
}>;
|
|
1192
|
+
}): Promise<URL>;
|
|
1282
1193
|
validateAuthorizationCode: ({
|
|
1283
1194
|
code,
|
|
1284
1195
|
redirectURI
|
|
@@ -1314,7 +1225,6 @@ declare const socialProviders: {
|
|
|
1314
1225
|
salesforce: (options: SalesforceOptions) => {
|
|
1315
1226
|
id: "salesforce";
|
|
1316
1227
|
name: string;
|
|
1317
|
-
callbackPath: string;
|
|
1318
1228
|
createAuthorizationURL({
|
|
1319
1229
|
state,
|
|
1320
1230
|
scopes,
|
|
@@ -1330,10 +1240,7 @@ declare const socialProviders: {
|
|
|
1330
1240
|
loginHint?: string | undefined;
|
|
1331
1241
|
idTokenNonce?: string | undefined;
|
|
1332
1242
|
additionalParams?: Record<string, string> | undefined;
|
|
1333
|
-
}): Promise<
|
|
1334
|
-
url: URL;
|
|
1335
|
-
requestedScopes: string[];
|
|
1336
|
-
}>;
|
|
1243
|
+
}): Promise<URL>;
|
|
1337
1244
|
validateAuthorizationCode: ({
|
|
1338
1245
|
code,
|
|
1339
1246
|
codeVerifier,
|
|
@@ -1370,7 +1277,6 @@ declare const socialProviders: {
|
|
|
1370
1277
|
vk: (options: VkOption) => {
|
|
1371
1278
|
id: "vk";
|
|
1372
1279
|
name: string;
|
|
1373
|
-
callbackPath: string;
|
|
1374
1280
|
createAuthorizationURL({
|
|
1375
1281
|
state,
|
|
1376
1282
|
scopes,
|
|
@@ -1386,10 +1292,7 @@ declare const socialProviders: {
|
|
|
1386
1292
|
loginHint?: string | undefined;
|
|
1387
1293
|
idTokenNonce?: string | undefined;
|
|
1388
1294
|
additionalParams?: Record<string, string> | undefined;
|
|
1389
|
-
}): Promise<
|
|
1390
|
-
url: URL;
|
|
1391
|
-
requestedScopes: string[];
|
|
1392
|
-
}>;
|
|
1295
|
+
}): Promise<URL>;
|
|
1393
1296
|
validateAuthorizationCode: ({
|
|
1394
1297
|
code,
|
|
1395
1298
|
codeVerifier,
|
|
@@ -1427,10 +1330,8 @@ declare const socialProviders: {
|
|
|
1427
1330
|
zoom: (userOptions: ZoomOptions) => {
|
|
1428
1331
|
id: "zoom";
|
|
1429
1332
|
name: string;
|
|
1430
|
-
callbackPath: string;
|
|
1431
1333
|
createAuthorizationURL: ({
|
|
1432
1334
|
state,
|
|
1433
|
-
scopes,
|
|
1434
1335
|
redirectURI,
|
|
1435
1336
|
codeVerifier,
|
|
1436
1337
|
additionalParams
|
|
@@ -1443,10 +1344,7 @@ declare const socialProviders: {
|
|
|
1443
1344
|
loginHint?: string | undefined;
|
|
1444
1345
|
idTokenNonce?: string | undefined;
|
|
1445
1346
|
additionalParams?: Record<string, string> | undefined;
|
|
1446
|
-
}) => Promise<
|
|
1447
|
-
url: URL;
|
|
1448
|
-
requestedScopes: string[];
|
|
1449
|
-
}>;
|
|
1347
|
+
}) => Promise<URL>;
|
|
1450
1348
|
validateAuthorizationCode: ({
|
|
1451
1349
|
code,
|
|
1452
1350
|
redirectURI,
|
|
@@ -1482,7 +1380,6 @@ declare const socialProviders: {
|
|
|
1482
1380
|
notion: (options: NotionOptions) => {
|
|
1483
1381
|
id: "notion";
|
|
1484
1382
|
name: string;
|
|
1485
|
-
callbackPath: string;
|
|
1486
1383
|
createAuthorizationURL({
|
|
1487
1384
|
state,
|
|
1488
1385
|
scopes,
|
|
@@ -1498,10 +1395,7 @@ declare const socialProviders: {
|
|
|
1498
1395
|
loginHint?: string | undefined;
|
|
1499
1396
|
idTokenNonce?: string | undefined;
|
|
1500
1397
|
additionalParams?: Record<string, string> | undefined;
|
|
1501
|
-
}): Promise<
|
|
1502
|
-
url: URL;
|
|
1503
|
-
requestedScopes: string[];
|
|
1504
|
-
}>;
|
|
1398
|
+
}): Promise<URL>;
|
|
1505
1399
|
validateAuthorizationCode: ({
|
|
1506
1400
|
code,
|
|
1507
1401
|
redirectURI
|
|
@@ -1537,7 +1431,6 @@ declare const socialProviders: {
|
|
|
1537
1431
|
kakao: (options: KakaoOptions) => {
|
|
1538
1432
|
id: "kakao";
|
|
1539
1433
|
name: string;
|
|
1540
|
-
callbackPath: string;
|
|
1541
1434
|
createAuthorizationURL({
|
|
1542
1435
|
state,
|
|
1543
1436
|
scopes,
|
|
@@ -1552,10 +1445,7 @@ declare const socialProviders: {
|
|
|
1552
1445
|
loginHint?: string | undefined;
|
|
1553
1446
|
idTokenNonce?: string | undefined;
|
|
1554
1447
|
additionalParams?: Record<string, string> | undefined;
|
|
1555
|
-
}): Promise<
|
|
1556
|
-
url: URL;
|
|
1557
|
-
requestedScopes: string[];
|
|
1558
|
-
}>;
|
|
1448
|
+
}): Promise<URL>;
|
|
1559
1449
|
validateAuthorizationCode: ({
|
|
1560
1450
|
code,
|
|
1561
1451
|
redirectURI
|
|
@@ -1612,7 +1502,6 @@ declare const socialProviders: {
|
|
|
1612
1502
|
naver: (options: NaverOptions) => {
|
|
1613
1503
|
id: "naver";
|
|
1614
1504
|
name: string;
|
|
1615
|
-
callbackPath: string;
|
|
1616
1505
|
createAuthorizationURL({
|
|
1617
1506
|
state,
|
|
1618
1507
|
scopes,
|
|
@@ -1627,10 +1516,7 @@ declare const socialProviders: {
|
|
|
1627
1516
|
loginHint?: string | undefined;
|
|
1628
1517
|
idTokenNonce?: string | undefined;
|
|
1629
1518
|
additionalParams?: Record<string, string> | undefined;
|
|
1630
|
-
}): Promise<
|
|
1631
|
-
url: URL;
|
|
1632
|
-
requestedScopes: string[];
|
|
1633
|
-
}>;
|
|
1519
|
+
}): Promise<URL>;
|
|
1634
1520
|
validateAuthorizationCode: ({
|
|
1635
1521
|
code,
|
|
1636
1522
|
redirectURI
|
|
@@ -1687,7 +1573,6 @@ declare const socialProviders: {
|
|
|
1687
1573
|
line: (options: LineOptions) => {
|
|
1688
1574
|
id: "line";
|
|
1689
1575
|
name: string;
|
|
1690
|
-
callbackPath: string;
|
|
1691
1576
|
createAuthorizationURL({
|
|
1692
1577
|
state,
|
|
1693
1578
|
scopes,
|
|
@@ -1704,10 +1589,7 @@ declare const socialProviders: {
|
|
|
1704
1589
|
loginHint?: string | undefined;
|
|
1705
1590
|
idTokenNonce?: string | undefined;
|
|
1706
1591
|
additionalParams?: Record<string, string> | undefined;
|
|
1707
|
-
}): Promise<
|
|
1708
|
-
url: URL;
|
|
1709
|
-
requestedScopes: string[];
|
|
1710
|
-
}>;
|
|
1592
|
+
}): Promise<URL>;
|
|
1711
1593
|
validateAuthorizationCode: ({
|
|
1712
1594
|
code,
|
|
1713
1595
|
codeVerifier,
|
|
@@ -1768,7 +1650,6 @@ declare const socialProviders: {
|
|
|
1768
1650
|
paybin: (options: PaybinOptions) => {
|
|
1769
1651
|
id: "paybin";
|
|
1770
1652
|
name: string;
|
|
1771
|
-
callbackPath: string;
|
|
1772
1653
|
createAuthorizationURL({
|
|
1773
1654
|
state,
|
|
1774
1655
|
scopes,
|
|
@@ -1785,10 +1666,7 @@ declare const socialProviders: {
|
|
|
1785
1666
|
loginHint?: string | undefined;
|
|
1786
1667
|
idTokenNonce?: string | undefined;
|
|
1787
1668
|
additionalParams?: Record<string, string> | undefined;
|
|
1788
|
-
}): Promise<
|
|
1789
|
-
url: URL;
|
|
1790
|
-
requestedScopes: string[];
|
|
1791
|
-
}>;
|
|
1669
|
+
}): Promise<URL>;
|
|
1792
1670
|
validateAuthorizationCode: ({
|
|
1793
1671
|
code,
|
|
1794
1672
|
codeVerifier,
|
|
@@ -1825,7 +1703,6 @@ declare const socialProviders: {
|
|
|
1825
1703
|
paypal: (options: PayPalOptions) => {
|
|
1826
1704
|
id: "paypal";
|
|
1827
1705
|
name: string;
|
|
1828
|
-
callbackPath: string;
|
|
1829
1706
|
createAuthorizationURL({
|
|
1830
1707
|
state,
|
|
1831
1708
|
codeVerifier,
|
|
@@ -1840,10 +1717,7 @@ declare const socialProviders: {
|
|
|
1840
1717
|
loginHint?: string | undefined;
|
|
1841
1718
|
idTokenNonce?: string | undefined;
|
|
1842
1719
|
additionalParams?: Record<string, string> | undefined;
|
|
1843
|
-
}): Promise<
|
|
1844
|
-
url: URL;
|
|
1845
|
-
requestedScopes: string[];
|
|
1846
|
-
}>;
|
|
1720
|
+
}): Promise<URL>;
|
|
1847
1721
|
validateAuthorizationCode: ({
|
|
1848
1722
|
code,
|
|
1849
1723
|
redirectURI
|
|
@@ -1909,7 +1783,6 @@ declare const socialProviders: {
|
|
|
1909
1783
|
polar: (options: PolarOptions) => {
|
|
1910
1784
|
id: "polar";
|
|
1911
1785
|
name: string;
|
|
1912
|
-
callbackPath: string;
|
|
1913
1786
|
createAuthorizationURL({
|
|
1914
1787
|
state,
|
|
1915
1788
|
scopes,
|
|
@@ -1925,10 +1798,7 @@ declare const socialProviders: {
|
|
|
1925
1798
|
loginHint?: string | undefined;
|
|
1926
1799
|
idTokenNonce?: string | undefined;
|
|
1927
1800
|
additionalParams?: Record<string, string> | undefined;
|
|
1928
|
-
}): Promise<
|
|
1929
|
-
url: URL;
|
|
1930
|
-
requestedScopes: string[];
|
|
1931
|
-
}>;
|
|
1801
|
+
}): Promise<URL>;
|
|
1932
1802
|
validateAuthorizationCode: ({
|
|
1933
1803
|
code,
|
|
1934
1804
|
codeVerifier,
|
|
@@ -1965,7 +1835,6 @@ declare const socialProviders: {
|
|
|
1965
1835
|
railway: (options: RailwayOptions) => {
|
|
1966
1836
|
id: "railway";
|
|
1967
1837
|
name: string;
|
|
1968
|
-
callbackPath: string;
|
|
1969
1838
|
createAuthorizationURL({
|
|
1970
1839
|
state,
|
|
1971
1840
|
scopes,
|
|
@@ -1981,10 +1850,7 @@ declare const socialProviders: {
|
|
|
1981
1850
|
loginHint?: string | undefined;
|
|
1982
1851
|
idTokenNonce?: string | undefined;
|
|
1983
1852
|
additionalParams?: Record<string, string> | undefined;
|
|
1984
|
-
}): Promise<
|
|
1985
|
-
url: URL;
|
|
1986
|
-
requestedScopes: string[];
|
|
1987
|
-
}>;
|
|
1853
|
+
}): Promise<URL>;
|
|
1988
1854
|
validateAuthorizationCode: ({
|
|
1989
1855
|
code,
|
|
1990
1856
|
codeVerifier,
|
|
@@ -2021,7 +1887,6 @@ declare const socialProviders: {
|
|
|
2021
1887
|
vercel: (options: VercelOptions) => {
|
|
2022
1888
|
id: "vercel";
|
|
2023
1889
|
name: string;
|
|
2024
|
-
callbackPath: string;
|
|
2025
1890
|
createAuthorizationURL({
|
|
2026
1891
|
state,
|
|
2027
1892
|
scopes,
|
|
@@ -2037,10 +1902,7 @@ declare const socialProviders: {
|
|
|
2037
1902
|
loginHint?: string | undefined;
|
|
2038
1903
|
idTokenNonce?: string | undefined;
|
|
2039
1904
|
additionalParams?: Record<string, string> | undefined;
|
|
2040
|
-
}): Promise<
|
|
2041
|
-
url: URL;
|
|
2042
|
-
requestedScopes: string[];
|
|
2043
|
-
}>;
|
|
1905
|
+
}): Promise<URL>;
|
|
2044
1906
|
validateAuthorizationCode: ({
|
|
2045
1907
|
code,
|
|
2046
1908
|
codeVerifier,
|
|
@@ -2076,7 +1938,6 @@ declare const socialProviders: {
|
|
|
2076
1938
|
wechat: (options: WeChatOptions) => {
|
|
2077
1939
|
id: "wechat";
|
|
2078
1940
|
name: string;
|
|
2079
|
-
callbackPath: string;
|
|
2080
1941
|
createAuthorizationURL({
|
|
2081
1942
|
state,
|
|
2082
1943
|
scopes,
|
|
@@ -2091,10 +1952,7 @@ declare const socialProviders: {
|
|
|
2091
1952
|
loginHint?: string | undefined;
|
|
2092
1953
|
idTokenNonce?: string | undefined;
|
|
2093
1954
|
additionalParams?: Record<string, string> | undefined;
|
|
2094
|
-
}):
|
|
2095
|
-
url: URL;
|
|
2096
|
-
requestedScopes: string[];
|
|
2097
|
-
};
|
|
1955
|
+
}): URL;
|
|
2098
1956
|
validateAuthorizationCode: ({
|
|
2099
1957
|
code
|
|
2100
1958
|
}: {
|
|
@@ -93,7 +93,6 @@ interface KakaoOptions extends ProviderOptions<KakaoProfile> {
|
|
|
93
93
|
declare const kakao: (options: KakaoOptions) => {
|
|
94
94
|
id: "kakao";
|
|
95
95
|
name: string;
|
|
96
|
-
callbackPath: string;
|
|
97
96
|
createAuthorizationURL({
|
|
98
97
|
state,
|
|
99
98
|
scopes,
|
|
@@ -108,10 +107,7 @@ declare const kakao: (options: KakaoOptions) => {
|
|
|
108
107
|
loginHint?: string | undefined;
|
|
109
108
|
idTokenNonce?: string | undefined;
|
|
110
109
|
additionalParams?: Record<string, string> | undefined;
|
|
111
|
-
}): Promise<
|
|
112
|
-
url: URL;
|
|
113
|
-
requestedScopes: string[];
|
|
114
|
-
}>;
|
|
110
|
+
}): Promise<URL>;
|
|
115
111
|
validateAuthorizationCode: ({
|
|
116
112
|
code,
|
|
117
113
|
redirectURI
|