@better-auth/core 1.7.0-beta.2 → 1.7.0-beta.4
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/context/global.mjs +1 -1
- package/dist/db/adapter/factory.mjs +64 -3
- package/dist/db/adapter/index.d.mts +35 -1
- package/dist/db/adapter/types.d.mts +1 -1
- package/dist/db/type.d.mts +12 -0
- package/dist/error/codes.d.mts +1 -0
- package/dist/error/codes.mjs +1 -0
- package/dist/instrumentation/tracer.mjs +1 -1
- package/dist/oauth2/authorization-params.d.mts +12 -0
- package/dist/oauth2/authorization-params.mjs +12 -0
- package/dist/oauth2/basic-credentials.d.mts +30 -0
- package/dist/oauth2/basic-credentials.mjs +64 -0
- package/dist/oauth2/client-assertion.d.mts +38 -22
- package/dist/oauth2/client-assertion.mjs +63 -28
- package/dist/oauth2/client-credentials-token.d.mts +19 -40
- package/dist/oauth2/client-credentials-token.mjs +18 -29
- package/dist/oauth2/create-authorization-url.d.mts +9 -1
- package/dist/oauth2/create-authorization-url.mjs +23 -5
- package/dist/oauth2/index.d.mts +10 -7
- package/dist/oauth2/index.mjs +9 -7
- package/dist/oauth2/oauth-provider.d.mts +21 -2
- package/dist/oauth2/refresh-access-token.d.mts +20 -40
- package/dist/oauth2/refresh-access-token.mjs +19 -32
- package/dist/oauth2/token-endpoint-auth.d.mts +17 -0
- package/dist/oauth2/token-endpoint-auth.mjs +89 -0
- package/dist/oauth2/utils.d.mts +9 -1
- package/dist/oauth2/utils.mjs +12 -1
- package/dist/oauth2/validate-authorization-code.d.mts +17 -52
- package/dist/oauth2/validate-authorization-code.mjs +17 -30
- package/dist/oauth2/verify.mjs +15 -5
- package/dist/social-providers/apple.d.mts +5 -12
- package/dist/social-providers/apple.mjs +14 -3
- package/dist/social-providers/atlassian.d.mts +3 -1
- package/dist/social-providers/atlassian.mjs +5 -2
- package/dist/social-providers/cognito.d.mts +16 -1
- package/dist/social-providers/cognito.mjs +6 -2
- package/dist/social-providers/discord.d.mts +5 -3
- package/dist/social-providers/discord.mjs +16 -3
- package/dist/social-providers/dropbox.d.mts +3 -1
- package/dist/social-providers/dropbox.mjs +5 -4
- package/dist/social-providers/facebook.d.mts +5 -3
- package/dist/social-providers/facebook.mjs +6 -3
- package/dist/social-providers/figma.d.mts +3 -1
- package/dist/social-providers/figma.mjs +3 -2
- package/dist/social-providers/github.d.mts +4 -2
- package/dist/social-providers/github.mjs +5 -4
- package/dist/social-providers/gitlab.d.mts +3 -1
- package/dist/social-providers/gitlab.mjs +3 -2
- package/dist/social-providers/google.d.mts +3 -1
- package/dist/social-providers/google.mjs +5 -2
- package/dist/social-providers/huggingface.d.mts +3 -1
- package/dist/social-providers/huggingface.mjs +3 -2
- package/dist/social-providers/index.d.mts +104 -36
- package/dist/social-providers/kakao.d.mts +3 -1
- package/dist/social-providers/kakao.mjs +3 -2
- package/dist/social-providers/kick.d.mts +3 -1
- package/dist/social-providers/kick.mjs +3 -2
- package/dist/social-providers/line.d.mts +3 -1
- package/dist/social-providers/line.mjs +3 -2
- package/dist/social-providers/linear.d.mts +3 -1
- package/dist/social-providers/linear.mjs +3 -2
- package/dist/social-providers/linkedin.d.mts +5 -3
- package/dist/social-providers/linkedin.mjs +4 -3
- package/dist/social-providers/microsoft-entra-id.d.mts +3 -2
- package/dist/social-providers/microsoft-entra-id.mjs +3 -2
- package/dist/social-providers/naver.d.mts +3 -1
- package/dist/social-providers/naver.mjs +3 -2
- package/dist/social-providers/notion.d.mts +3 -1
- package/dist/social-providers/notion.mjs +5 -2
- package/dist/social-providers/paybin.d.mts +3 -1
- package/dist/social-providers/paybin.mjs +3 -2
- package/dist/social-providers/paypal.d.mts +3 -1
- package/dist/social-providers/paypal.mjs +4 -3
- package/dist/social-providers/polar.d.mts +3 -1
- package/dist/social-providers/polar.mjs +3 -2
- package/dist/social-providers/railway.d.mts +3 -1
- package/dist/social-providers/railway.mjs +3 -2
- package/dist/social-providers/reddit.d.mts +3 -1
- package/dist/social-providers/reddit.mjs +3 -2
- package/dist/social-providers/roblox.d.mts +4 -2
- package/dist/social-providers/roblox.mjs +12 -2
- package/dist/social-providers/salesforce.d.mts +3 -1
- package/dist/social-providers/salesforce.mjs +3 -2
- package/dist/social-providers/slack.d.mts +4 -2
- package/dist/social-providers/slack.mjs +11 -8
- package/dist/social-providers/spotify.d.mts +3 -1
- package/dist/social-providers/spotify.mjs +3 -2
- package/dist/social-providers/tiktok.d.mts +3 -1
- package/dist/social-providers/tiktok.mjs +14 -2
- package/dist/social-providers/twitch.d.mts +3 -1
- package/dist/social-providers/twitch.mjs +3 -2
- package/dist/social-providers/twitter.d.mts +5 -2
- package/dist/social-providers/twitter.mjs +2 -1
- package/dist/social-providers/vercel.d.mts +3 -1
- package/dist/social-providers/vercel.mjs +3 -2
- package/dist/social-providers/vk.d.mts +3 -1
- package/dist/social-providers/vk.mjs +3 -2
- package/dist/social-providers/wechat.d.mts +3 -1
- package/dist/social-providers/wechat.mjs +7 -1
- package/dist/social-providers/zoom.d.mts +4 -2
- package/dist/social-providers/zoom.mjs +10 -17
- package/dist/types/context.d.mts +30 -4
- package/dist/types/init-options.d.mts +29 -5
- package/dist/utils/ip.d.mts +5 -4
- package/dist/utils/ip.mjs +3 -3
- package/dist/utils/redirect-uri.d.mts +20 -0
- package/dist/utils/redirect-uri.mjs +48 -0
- package/dist/utils/string.d.mts +5 -1
- package/dist/utils/string.mjs +20 -1
- package/dist/utils/url.d.mts +18 -1
- package/dist/utils/url.mjs +30 -1
- package/package.json +9 -8
- package/src/db/adapter/factory.ts +121 -3
- package/src/db/adapter/index.ts +32 -0
- package/src/db/adapter/types.ts +1 -0
- package/src/db/get-tables.ts +2 -0
- package/src/db/schema/user.ts +3 -0
- package/src/db/type.ts +12 -0
- package/src/error/codes.ts +1 -0
- package/src/oauth2/authorization-params.ts +28 -0
- package/src/oauth2/basic-credentials.ts +87 -0
- package/src/oauth2/client-assertion.ts +131 -58
- package/src/oauth2/client-credentials-token.ts +48 -72
- package/src/oauth2/create-authorization-url.ts +28 -6
- package/src/oauth2/index.ts +25 -9
- package/src/oauth2/oauth-provider.ts +21 -2
- package/src/oauth2/refresh-access-token.ts +50 -76
- package/src/oauth2/token-endpoint-auth.ts +221 -0
- package/src/oauth2/utils.ts +19 -0
- package/src/oauth2/validate-authorization-code.ts +55 -85
- package/src/oauth2/verify.ts +20 -4
- package/src/social-providers/apple.ts +27 -3
- package/src/social-providers/atlassian.ts +8 -1
- package/src/social-providers/cognito.ts +26 -1
- package/src/social-providers/discord.ts +22 -18
- package/src/social-providers/dropbox.ts +7 -5
- package/src/social-providers/facebook.ts +14 -9
- package/src/social-providers/figma.ts +8 -1
- package/src/social-providers/github.ts +5 -3
- package/src/social-providers/gitlab.ts +2 -0
- package/src/social-providers/google.ts +2 -0
- package/src/social-providers/huggingface.ts +8 -1
- package/src/social-providers/kakao.ts +2 -1
- package/src/social-providers/kick.ts +8 -1
- package/src/social-providers/line.ts +2 -0
- package/src/social-providers/linear.ts +8 -1
- package/src/social-providers/linkedin.ts +5 -3
- package/src/social-providers/microsoft-entra-id.ts +2 -1
- package/src/social-providers/naver.ts +2 -1
- package/src/social-providers/notion.ts +8 -1
- package/src/social-providers/paybin.ts +2 -0
- package/src/social-providers/paypal.ts +7 -1
- package/src/social-providers/polar.ts +8 -1
- package/src/social-providers/railway.ts +8 -1
- package/src/social-providers/reddit.ts +2 -1
- package/src/social-providers/roblox.ts +16 -11
- package/src/social-providers/salesforce.ts +8 -1
- package/src/social-providers/slack.ts +15 -9
- package/src/social-providers/spotify.ts +8 -1
- package/src/social-providers/tiktok.ts +22 -9
- package/src/social-providers/twitch.ts +2 -1
- package/src/social-providers/twitter.ts +1 -0
- package/src/social-providers/vercel.ts +8 -1
- package/src/social-providers/vk.ts +8 -1
- package/src/social-providers/wechat.ts +9 -1
- package/src/social-providers/zoom.ts +15 -19
- package/src/types/context.ts +33 -5
- package/src/types/init-options.ts +29 -5
- package/src/utils/ip.ts +12 -13
- package/src/utils/redirect-uri.ts +54 -0
- package/src/utils/string.ts +37 -0
- package/src/utils/url.ts +28 -0
|
@@ -45,7 +45,8 @@ declare const socialProviders: {
|
|
|
45
45
|
createAuthorizationURL({
|
|
46
46
|
state,
|
|
47
47
|
scopes,
|
|
48
|
-
redirectURI
|
|
48
|
+
redirectURI,
|
|
49
|
+
additionalParams
|
|
49
50
|
}: {
|
|
50
51
|
state: string;
|
|
51
52
|
codeVerifier: string;
|
|
@@ -53,6 +54,7 @@ declare const socialProviders: {
|
|
|
53
54
|
redirectURI: string;
|
|
54
55
|
display?: string | undefined;
|
|
55
56
|
loginHint?: string | undefined;
|
|
57
|
+
additionalParams?: Record<string, string> | undefined;
|
|
56
58
|
}): Promise<URL>;
|
|
57
59
|
validateAuthorizationCode: ({
|
|
58
60
|
code,
|
|
@@ -94,7 +96,8 @@ declare const socialProviders: {
|
|
|
94
96
|
state,
|
|
95
97
|
scopes,
|
|
96
98
|
codeVerifier,
|
|
97
|
-
redirectURI
|
|
99
|
+
redirectURI,
|
|
100
|
+
additionalParams
|
|
98
101
|
}: {
|
|
99
102
|
state: string;
|
|
100
103
|
codeVerifier: string;
|
|
@@ -102,6 +105,7 @@ declare const socialProviders: {
|
|
|
102
105
|
redirectURI: string;
|
|
103
106
|
display?: string | undefined;
|
|
104
107
|
loginHint?: string | undefined;
|
|
108
|
+
additionalParams?: Record<string, string> | undefined;
|
|
105
109
|
}): Promise<URL>;
|
|
106
110
|
validateAuthorizationCode: ({
|
|
107
111
|
code,
|
|
@@ -142,7 +146,8 @@ declare const socialProviders: {
|
|
|
142
146
|
state,
|
|
143
147
|
scopes,
|
|
144
148
|
codeVerifier,
|
|
145
|
-
redirectURI
|
|
149
|
+
redirectURI,
|
|
150
|
+
additionalParams
|
|
146
151
|
}: {
|
|
147
152
|
state: string;
|
|
148
153
|
codeVerifier: string;
|
|
@@ -150,6 +155,7 @@ declare const socialProviders: {
|
|
|
150
155
|
redirectURI: string;
|
|
151
156
|
display?: string | undefined;
|
|
152
157
|
loginHint?: string | undefined;
|
|
158
|
+
additionalParams?: Record<string, string> | undefined;
|
|
153
159
|
}): Promise<URL>;
|
|
154
160
|
validateAuthorizationCode: ({
|
|
155
161
|
code,
|
|
@@ -190,7 +196,8 @@ declare const socialProviders: {
|
|
|
190
196
|
createAuthorizationURL({
|
|
191
197
|
state,
|
|
192
198
|
scopes,
|
|
193
|
-
redirectURI
|
|
199
|
+
redirectURI,
|
|
200
|
+
additionalParams
|
|
194
201
|
}: {
|
|
195
202
|
state: string;
|
|
196
203
|
codeVerifier: string;
|
|
@@ -198,7 +205,8 @@ declare const socialProviders: {
|
|
|
198
205
|
redirectURI: string;
|
|
199
206
|
display?: string | undefined;
|
|
200
207
|
loginHint?: string | undefined;
|
|
201
|
-
|
|
208
|
+
additionalParams?: Record<string, string> | undefined;
|
|
209
|
+
}): Promise<URL>;
|
|
202
210
|
validateAuthorizationCode: ({
|
|
203
211
|
code,
|
|
204
212
|
redirectURI
|
|
@@ -237,7 +245,8 @@ declare const socialProviders: {
|
|
|
237
245
|
state,
|
|
238
246
|
scopes,
|
|
239
247
|
redirectURI,
|
|
240
|
-
loginHint
|
|
248
|
+
loginHint,
|
|
249
|
+
additionalParams
|
|
241
250
|
}: {
|
|
242
251
|
state: string;
|
|
243
252
|
codeVerifier: string;
|
|
@@ -245,6 +254,7 @@ declare const socialProviders: {
|
|
|
245
254
|
redirectURI: string;
|
|
246
255
|
display?: string | undefined;
|
|
247
256
|
loginHint?: string | undefined;
|
|
257
|
+
additionalParams?: Record<string, string> | undefined;
|
|
248
258
|
}): Promise<URL>;
|
|
249
259
|
validateAuthorizationCode: ({
|
|
250
260
|
code,
|
|
@@ -285,7 +295,8 @@ declare const socialProviders: {
|
|
|
285
295
|
state,
|
|
286
296
|
scopes,
|
|
287
297
|
codeVerifier,
|
|
288
|
-
redirectURI
|
|
298
|
+
redirectURI,
|
|
299
|
+
additionalParams
|
|
289
300
|
}: {
|
|
290
301
|
state: string;
|
|
291
302
|
codeVerifier: string;
|
|
@@ -293,6 +304,7 @@ declare const socialProviders: {
|
|
|
293
304
|
redirectURI: string;
|
|
294
305
|
display?: string | undefined;
|
|
295
306
|
loginHint?: string | undefined;
|
|
307
|
+
additionalParams?: Record<string, string> | undefined;
|
|
296
308
|
}): Promise<URL>;
|
|
297
309
|
validateAuthorizationCode: ({
|
|
298
310
|
code,
|
|
@@ -334,7 +346,8 @@ declare const socialProviders: {
|
|
|
334
346
|
scopes,
|
|
335
347
|
loginHint,
|
|
336
348
|
codeVerifier,
|
|
337
|
-
redirectURI
|
|
349
|
+
redirectURI,
|
|
350
|
+
additionalParams
|
|
338
351
|
}: {
|
|
339
352
|
state: string;
|
|
340
353
|
codeVerifier: string;
|
|
@@ -342,6 +355,7 @@ declare const socialProviders: {
|
|
|
342
355
|
redirectURI: string;
|
|
343
356
|
display?: string | undefined;
|
|
344
357
|
loginHint?: string | undefined;
|
|
358
|
+
additionalParams?: Record<string, string> | undefined;
|
|
345
359
|
}): Promise<URL>;
|
|
346
360
|
validateAuthorizationCode: ({
|
|
347
361
|
code,
|
|
@@ -385,6 +399,7 @@ declare const socialProviders: {
|
|
|
385
399
|
redirectURI: string;
|
|
386
400
|
display?: string | undefined;
|
|
387
401
|
loginHint?: string | undefined;
|
|
402
|
+
additionalParams?: Record<string, string> | undefined;
|
|
388
403
|
}): Promise<URL>;
|
|
389
404
|
validateAuthorizationCode({
|
|
390
405
|
code,
|
|
@@ -428,7 +443,8 @@ declare const socialProviders: {
|
|
|
428
443
|
codeVerifier,
|
|
429
444
|
redirectURI,
|
|
430
445
|
loginHint,
|
|
431
|
-
display
|
|
446
|
+
display,
|
|
447
|
+
additionalParams
|
|
432
448
|
}: {
|
|
433
449
|
state: string;
|
|
434
450
|
codeVerifier: string;
|
|
@@ -436,6 +452,7 @@ declare const socialProviders: {
|
|
|
436
452
|
redirectURI: string;
|
|
437
453
|
display?: string | undefined;
|
|
438
454
|
loginHint?: string | undefined;
|
|
455
|
+
additionalParams?: Record<string, string> | undefined;
|
|
439
456
|
}): Promise<URL>;
|
|
440
457
|
validateAuthorizationCode: ({
|
|
441
458
|
code,
|
|
@@ -477,7 +494,8 @@ declare const socialProviders: {
|
|
|
477
494
|
state,
|
|
478
495
|
scopes,
|
|
479
496
|
codeVerifier,
|
|
480
|
-
redirectURI
|
|
497
|
+
redirectURI,
|
|
498
|
+
additionalParams
|
|
481
499
|
}: {
|
|
482
500
|
state: string;
|
|
483
501
|
codeVerifier: string;
|
|
@@ -485,6 +503,7 @@ declare const socialProviders: {
|
|
|
485
503
|
redirectURI: string;
|
|
486
504
|
display?: string | undefined;
|
|
487
505
|
loginHint?: string | undefined;
|
|
506
|
+
additionalParams?: Record<string, string> | undefined;
|
|
488
507
|
}): Promise<URL>;
|
|
489
508
|
validateAuthorizationCode: ({
|
|
490
509
|
code,
|
|
@@ -524,7 +543,8 @@ declare const socialProviders: {
|
|
|
524
543
|
createAuthorizationURL({
|
|
525
544
|
state,
|
|
526
545
|
scopes,
|
|
527
|
-
redirectURI
|
|
546
|
+
redirectURI,
|
|
547
|
+
additionalParams
|
|
528
548
|
}: {
|
|
529
549
|
state: string;
|
|
530
550
|
codeVerifier: string;
|
|
@@ -532,7 +552,8 @@ declare const socialProviders: {
|
|
|
532
552
|
redirectURI: string;
|
|
533
553
|
display?: string | undefined;
|
|
534
554
|
loginHint?: string | undefined;
|
|
535
|
-
|
|
555
|
+
additionalParams?: Record<string, string> | undefined;
|
|
556
|
+
}): Promise<URL>;
|
|
536
557
|
validateAuthorizationCode: ({
|
|
537
558
|
code,
|
|
538
559
|
redirectURI
|
|
@@ -571,7 +592,8 @@ declare const socialProviders: {
|
|
|
571
592
|
state,
|
|
572
593
|
scopes,
|
|
573
594
|
codeVerifier,
|
|
574
|
-
redirectURI
|
|
595
|
+
redirectURI,
|
|
596
|
+
additionalParams
|
|
575
597
|
}: {
|
|
576
598
|
state: string;
|
|
577
599
|
codeVerifier: string;
|
|
@@ -579,6 +601,7 @@ declare const socialProviders: {
|
|
|
579
601
|
redirectURI: string;
|
|
580
602
|
display?: string | undefined;
|
|
581
603
|
loginHint?: string | undefined;
|
|
604
|
+
additionalParams?: Record<string, string> | undefined;
|
|
582
605
|
}): Promise<URL>;
|
|
583
606
|
validateAuthorizationCode: ({
|
|
584
607
|
code,
|
|
@@ -618,7 +641,8 @@ declare const socialProviders: {
|
|
|
618
641
|
createAuthorizationURL({
|
|
619
642
|
state,
|
|
620
643
|
scopes,
|
|
621
|
-
redirectURI
|
|
644
|
+
redirectURI,
|
|
645
|
+
additionalParams
|
|
622
646
|
}: {
|
|
623
647
|
state: string;
|
|
624
648
|
codeVerifier: string;
|
|
@@ -626,6 +650,7 @@ declare const socialProviders: {
|
|
|
626
650
|
redirectURI: string;
|
|
627
651
|
display?: string | undefined;
|
|
628
652
|
loginHint?: string | undefined;
|
|
653
|
+
additionalParams?: Record<string, string> | undefined;
|
|
629
654
|
}): Promise<URL>;
|
|
630
655
|
validateAuthorizationCode: ({
|
|
631
656
|
code,
|
|
@@ -668,6 +693,7 @@ declare const socialProviders: {
|
|
|
668
693
|
redirectURI: string;
|
|
669
694
|
display?: string | undefined;
|
|
670
695
|
loginHint?: string | undefined;
|
|
696
|
+
additionalParams?: Record<string, string> | undefined;
|
|
671
697
|
}): Promise<URL>;
|
|
672
698
|
validateAuthorizationCode: ({
|
|
673
699
|
code,
|
|
@@ -708,7 +734,8 @@ declare const socialProviders: {
|
|
|
708
734
|
state,
|
|
709
735
|
scopes,
|
|
710
736
|
codeVerifier,
|
|
711
|
-
redirectURI
|
|
737
|
+
redirectURI,
|
|
738
|
+
additionalParams
|
|
712
739
|
}: {
|
|
713
740
|
state: string;
|
|
714
741
|
codeVerifier: string;
|
|
@@ -716,6 +743,7 @@ declare const socialProviders: {
|
|
|
716
743
|
redirectURI: string;
|
|
717
744
|
display?: string | undefined;
|
|
718
745
|
loginHint?: string | undefined;
|
|
746
|
+
additionalParams?: Record<string, string> | undefined;
|
|
719
747
|
}) => Promise<URL>;
|
|
720
748
|
validateAuthorizationCode: ({
|
|
721
749
|
code,
|
|
@@ -756,7 +784,8 @@ declare const socialProviders: {
|
|
|
756
784
|
state,
|
|
757
785
|
scopes,
|
|
758
786
|
redirectURI,
|
|
759
|
-
codeVerifier
|
|
787
|
+
codeVerifier,
|
|
788
|
+
additionalParams
|
|
760
789
|
}: {
|
|
761
790
|
state: string;
|
|
762
791
|
codeVerifier: string;
|
|
@@ -764,6 +793,7 @@ declare const socialProviders: {
|
|
|
764
793
|
redirectURI: string;
|
|
765
794
|
display?: string | undefined;
|
|
766
795
|
loginHint?: string | undefined;
|
|
796
|
+
additionalParams?: Record<string, string> | undefined;
|
|
767
797
|
}): Promise<URL>;
|
|
768
798
|
validateAuthorizationCode({
|
|
769
799
|
code,
|
|
@@ -804,7 +834,8 @@ declare const socialProviders: {
|
|
|
804
834
|
state,
|
|
805
835
|
scopes,
|
|
806
836
|
loginHint,
|
|
807
|
-
redirectURI
|
|
837
|
+
redirectURI,
|
|
838
|
+
additionalParams
|
|
808
839
|
}: {
|
|
809
840
|
state: string;
|
|
810
841
|
codeVerifier: string;
|
|
@@ -812,6 +843,7 @@ declare const socialProviders: {
|
|
|
812
843
|
redirectURI: string;
|
|
813
844
|
display?: string | undefined;
|
|
814
845
|
loginHint?: string | undefined;
|
|
846
|
+
additionalParams?: Record<string, string> | undefined;
|
|
815
847
|
}): Promise<URL>;
|
|
816
848
|
validateAuthorizationCode: ({
|
|
817
849
|
code,
|
|
@@ -851,7 +883,8 @@ declare const socialProviders: {
|
|
|
851
883
|
state,
|
|
852
884
|
scopes,
|
|
853
885
|
redirectURI,
|
|
854
|
-
loginHint
|
|
886
|
+
loginHint,
|
|
887
|
+
additionalParams
|
|
855
888
|
}: {
|
|
856
889
|
state: string;
|
|
857
890
|
codeVerifier: string;
|
|
@@ -859,6 +892,7 @@ declare const socialProviders: {
|
|
|
859
892
|
redirectURI: string;
|
|
860
893
|
display?: string | undefined;
|
|
861
894
|
loginHint?: string | undefined;
|
|
895
|
+
additionalParams?: Record<string, string> | undefined;
|
|
862
896
|
}) => Promise<URL>;
|
|
863
897
|
validateAuthorizationCode: ({
|
|
864
898
|
code,
|
|
@@ -899,7 +933,8 @@ declare const socialProviders: {
|
|
|
899
933
|
scopes,
|
|
900
934
|
codeVerifier,
|
|
901
935
|
loginHint,
|
|
902
|
-
redirectURI
|
|
936
|
+
redirectURI,
|
|
937
|
+
additionalParams
|
|
903
938
|
}: {
|
|
904
939
|
state: string;
|
|
905
940
|
codeVerifier: string;
|
|
@@ -907,6 +942,7 @@ declare const socialProviders: {
|
|
|
907
942
|
redirectURI: string;
|
|
908
943
|
display?: string | undefined;
|
|
909
944
|
loginHint?: string | undefined;
|
|
945
|
+
additionalParams?: Record<string, string> | undefined;
|
|
910
946
|
}) => Promise<URL>;
|
|
911
947
|
validateAuthorizationCode: ({
|
|
912
948
|
code,
|
|
@@ -967,7 +1003,8 @@ declare const socialProviders: {
|
|
|
967
1003
|
createAuthorizationURL({
|
|
968
1004
|
state,
|
|
969
1005
|
scopes,
|
|
970
|
-
redirectURI
|
|
1006
|
+
redirectURI,
|
|
1007
|
+
additionalParams
|
|
971
1008
|
}: {
|
|
972
1009
|
state: string;
|
|
973
1010
|
codeVerifier: string;
|
|
@@ -975,6 +1012,7 @@ declare const socialProviders: {
|
|
|
975
1012
|
redirectURI: string;
|
|
976
1013
|
display?: string | undefined;
|
|
977
1014
|
loginHint?: string | undefined;
|
|
1015
|
+
additionalParams?: Record<string, string> | undefined;
|
|
978
1016
|
}): URL;
|
|
979
1017
|
validateAuthorizationCode: ({
|
|
980
1018
|
code,
|
|
@@ -1013,7 +1051,8 @@ declare const socialProviders: {
|
|
|
1013
1051
|
createAuthorizationURL({
|
|
1014
1052
|
state,
|
|
1015
1053
|
scopes,
|
|
1016
|
-
redirectURI
|
|
1054
|
+
redirectURI,
|
|
1055
|
+
additionalParams
|
|
1017
1056
|
}: {
|
|
1018
1057
|
state: string;
|
|
1019
1058
|
codeVerifier: string;
|
|
@@ -1021,6 +1060,7 @@ declare const socialProviders: {
|
|
|
1021
1060
|
redirectURI: string;
|
|
1022
1061
|
display?: string | undefined;
|
|
1023
1062
|
loginHint?: string | undefined;
|
|
1063
|
+
additionalParams?: Record<string, string> | undefined;
|
|
1024
1064
|
}): Promise<URL>;
|
|
1025
1065
|
validateAuthorizationCode: ({
|
|
1026
1066
|
code,
|
|
@@ -1059,7 +1099,8 @@ declare const socialProviders: {
|
|
|
1059
1099
|
createAuthorizationURL({
|
|
1060
1100
|
state,
|
|
1061
1101
|
scopes,
|
|
1062
|
-
redirectURI
|
|
1102
|
+
redirectURI,
|
|
1103
|
+
additionalParams
|
|
1063
1104
|
}: {
|
|
1064
1105
|
state: string;
|
|
1065
1106
|
codeVerifier: string;
|
|
@@ -1067,7 +1108,8 @@ declare const socialProviders: {
|
|
|
1067
1108
|
redirectURI: string;
|
|
1068
1109
|
display?: string | undefined;
|
|
1069
1110
|
loginHint?: string | undefined;
|
|
1070
|
-
|
|
1111
|
+
additionalParams?: Record<string, string> | undefined;
|
|
1112
|
+
}): Promise<URL>;
|
|
1071
1113
|
validateAuthorizationCode: ({
|
|
1072
1114
|
code,
|
|
1073
1115
|
redirectURI
|
|
@@ -1106,7 +1148,8 @@ declare const socialProviders: {
|
|
|
1106
1148
|
state,
|
|
1107
1149
|
scopes,
|
|
1108
1150
|
codeVerifier,
|
|
1109
|
-
redirectURI
|
|
1151
|
+
redirectURI,
|
|
1152
|
+
additionalParams
|
|
1110
1153
|
}: {
|
|
1111
1154
|
state: string;
|
|
1112
1155
|
codeVerifier: string;
|
|
@@ -1114,6 +1157,7 @@ declare const socialProviders: {
|
|
|
1114
1157
|
redirectURI: string;
|
|
1115
1158
|
display?: string | undefined;
|
|
1116
1159
|
loginHint?: string | undefined;
|
|
1160
|
+
additionalParams?: Record<string, string> | undefined;
|
|
1117
1161
|
}): Promise<URL>;
|
|
1118
1162
|
validateAuthorizationCode: ({
|
|
1119
1163
|
code,
|
|
@@ -1154,7 +1198,8 @@ declare const socialProviders: {
|
|
|
1154
1198
|
state,
|
|
1155
1199
|
scopes,
|
|
1156
1200
|
codeVerifier,
|
|
1157
|
-
redirectURI
|
|
1201
|
+
redirectURI,
|
|
1202
|
+
additionalParams
|
|
1158
1203
|
}: {
|
|
1159
1204
|
state: string;
|
|
1160
1205
|
codeVerifier: string;
|
|
@@ -1162,6 +1207,7 @@ declare const socialProviders: {
|
|
|
1162
1207
|
redirectURI: string;
|
|
1163
1208
|
display?: string | undefined;
|
|
1164
1209
|
loginHint?: string | undefined;
|
|
1210
|
+
additionalParams?: Record<string, string> | undefined;
|
|
1165
1211
|
}): Promise<URL>;
|
|
1166
1212
|
validateAuthorizationCode: ({
|
|
1167
1213
|
code,
|
|
@@ -1202,7 +1248,8 @@ declare const socialProviders: {
|
|
|
1202
1248
|
createAuthorizationURL: ({
|
|
1203
1249
|
state,
|
|
1204
1250
|
redirectURI,
|
|
1205
|
-
codeVerifier
|
|
1251
|
+
codeVerifier,
|
|
1252
|
+
additionalParams
|
|
1206
1253
|
}: {
|
|
1207
1254
|
state: string;
|
|
1208
1255
|
codeVerifier: string;
|
|
@@ -1210,6 +1257,7 @@ declare const socialProviders: {
|
|
|
1210
1257
|
redirectURI: string;
|
|
1211
1258
|
display?: string | undefined;
|
|
1212
1259
|
loginHint?: string | undefined;
|
|
1260
|
+
additionalParams?: Record<string, string> | undefined;
|
|
1213
1261
|
}) => Promise<URL>;
|
|
1214
1262
|
validateAuthorizationCode: ({
|
|
1215
1263
|
code,
|
|
@@ -1249,7 +1297,8 @@ declare const socialProviders: {
|
|
|
1249
1297
|
state,
|
|
1250
1298
|
scopes,
|
|
1251
1299
|
loginHint,
|
|
1252
|
-
redirectURI
|
|
1300
|
+
redirectURI,
|
|
1301
|
+
additionalParams
|
|
1253
1302
|
}: {
|
|
1254
1303
|
state: string;
|
|
1255
1304
|
codeVerifier: string;
|
|
@@ -1257,6 +1306,7 @@ declare const socialProviders: {
|
|
|
1257
1306
|
redirectURI: string;
|
|
1258
1307
|
display?: string | undefined;
|
|
1259
1308
|
loginHint?: string | undefined;
|
|
1309
|
+
additionalParams?: Record<string, string> | undefined;
|
|
1260
1310
|
}): Promise<URL>;
|
|
1261
1311
|
validateAuthorizationCode: ({
|
|
1262
1312
|
code,
|
|
@@ -1295,7 +1345,8 @@ declare const socialProviders: {
|
|
|
1295
1345
|
createAuthorizationURL({
|
|
1296
1346
|
state,
|
|
1297
1347
|
scopes,
|
|
1298
|
-
redirectURI
|
|
1348
|
+
redirectURI,
|
|
1349
|
+
additionalParams
|
|
1299
1350
|
}: {
|
|
1300
1351
|
state: string;
|
|
1301
1352
|
codeVerifier: string;
|
|
@@ -1303,6 +1354,7 @@ declare const socialProviders: {
|
|
|
1303
1354
|
redirectURI: string;
|
|
1304
1355
|
display?: string | undefined;
|
|
1305
1356
|
loginHint?: string | undefined;
|
|
1357
|
+
additionalParams?: Record<string, string> | undefined;
|
|
1306
1358
|
}): Promise<URL>;
|
|
1307
1359
|
validateAuthorizationCode: ({
|
|
1308
1360
|
code,
|
|
@@ -1362,7 +1414,8 @@ declare const socialProviders: {
|
|
|
1362
1414
|
createAuthorizationURL({
|
|
1363
1415
|
state,
|
|
1364
1416
|
scopes,
|
|
1365
|
-
redirectURI
|
|
1417
|
+
redirectURI,
|
|
1418
|
+
additionalParams
|
|
1366
1419
|
}: {
|
|
1367
1420
|
state: string;
|
|
1368
1421
|
codeVerifier: string;
|
|
@@ -1370,6 +1423,7 @@ declare const socialProviders: {
|
|
|
1370
1423
|
redirectURI: string;
|
|
1371
1424
|
display?: string | undefined;
|
|
1372
1425
|
loginHint?: string | undefined;
|
|
1426
|
+
additionalParams?: Record<string, string> | undefined;
|
|
1373
1427
|
}): Promise<URL>;
|
|
1374
1428
|
validateAuthorizationCode: ({
|
|
1375
1429
|
code,
|
|
@@ -1431,7 +1485,8 @@ declare const socialProviders: {
|
|
|
1431
1485
|
scopes,
|
|
1432
1486
|
codeVerifier,
|
|
1433
1487
|
redirectURI,
|
|
1434
|
-
loginHint
|
|
1488
|
+
loginHint,
|
|
1489
|
+
additionalParams
|
|
1435
1490
|
}: {
|
|
1436
1491
|
state: string;
|
|
1437
1492
|
codeVerifier: string;
|
|
@@ -1439,6 +1494,7 @@ declare const socialProviders: {
|
|
|
1439
1494
|
redirectURI: string;
|
|
1440
1495
|
display?: string | undefined;
|
|
1441
1496
|
loginHint?: string | undefined;
|
|
1497
|
+
additionalParams?: Record<string, string> | undefined;
|
|
1442
1498
|
}): Promise<URL>;
|
|
1443
1499
|
validateAuthorizationCode: ({
|
|
1444
1500
|
code,
|
|
@@ -1502,7 +1558,8 @@ declare const socialProviders: {
|
|
|
1502
1558
|
scopes,
|
|
1503
1559
|
codeVerifier,
|
|
1504
1560
|
redirectURI,
|
|
1505
|
-
loginHint
|
|
1561
|
+
loginHint,
|
|
1562
|
+
additionalParams
|
|
1506
1563
|
}: {
|
|
1507
1564
|
state: string;
|
|
1508
1565
|
codeVerifier: string;
|
|
@@ -1510,6 +1567,7 @@ declare const socialProviders: {
|
|
|
1510
1567
|
redirectURI: string;
|
|
1511
1568
|
display?: string | undefined;
|
|
1512
1569
|
loginHint?: string | undefined;
|
|
1570
|
+
additionalParams?: Record<string, string> | undefined;
|
|
1513
1571
|
}): Promise<URL>;
|
|
1514
1572
|
validateAuthorizationCode: ({
|
|
1515
1573
|
code,
|
|
@@ -1549,7 +1607,8 @@ declare const socialProviders: {
|
|
|
1549
1607
|
createAuthorizationURL({
|
|
1550
1608
|
state,
|
|
1551
1609
|
codeVerifier,
|
|
1552
|
-
redirectURI
|
|
1610
|
+
redirectURI,
|
|
1611
|
+
additionalParams
|
|
1553
1612
|
}: {
|
|
1554
1613
|
state: string;
|
|
1555
1614
|
codeVerifier: string;
|
|
@@ -1557,6 +1616,7 @@ declare const socialProviders: {
|
|
|
1557
1616
|
redirectURI: string;
|
|
1558
1617
|
display?: string | undefined;
|
|
1559
1618
|
loginHint?: string | undefined;
|
|
1619
|
+
additionalParams?: Record<string, string> | undefined;
|
|
1560
1620
|
}): Promise<URL>;
|
|
1561
1621
|
validateAuthorizationCode: ({
|
|
1562
1622
|
code,
|
|
@@ -1627,7 +1687,8 @@ declare const socialProviders: {
|
|
|
1627
1687
|
state,
|
|
1628
1688
|
scopes,
|
|
1629
1689
|
codeVerifier,
|
|
1630
|
-
redirectURI
|
|
1690
|
+
redirectURI,
|
|
1691
|
+
additionalParams
|
|
1631
1692
|
}: {
|
|
1632
1693
|
state: string;
|
|
1633
1694
|
codeVerifier: string;
|
|
@@ -1635,6 +1696,7 @@ declare const socialProviders: {
|
|
|
1635
1696
|
redirectURI: string;
|
|
1636
1697
|
display?: string | undefined;
|
|
1637
1698
|
loginHint?: string | undefined;
|
|
1699
|
+
additionalParams?: Record<string, string> | undefined;
|
|
1638
1700
|
}): Promise<URL>;
|
|
1639
1701
|
validateAuthorizationCode: ({
|
|
1640
1702
|
code,
|
|
@@ -1675,7 +1737,8 @@ declare const socialProviders: {
|
|
|
1675
1737
|
state,
|
|
1676
1738
|
scopes,
|
|
1677
1739
|
codeVerifier,
|
|
1678
|
-
redirectURI
|
|
1740
|
+
redirectURI,
|
|
1741
|
+
additionalParams
|
|
1679
1742
|
}: {
|
|
1680
1743
|
state: string;
|
|
1681
1744
|
codeVerifier: string;
|
|
@@ -1683,6 +1746,7 @@ declare const socialProviders: {
|
|
|
1683
1746
|
redirectURI: string;
|
|
1684
1747
|
display?: string | undefined;
|
|
1685
1748
|
loginHint?: string | undefined;
|
|
1749
|
+
additionalParams?: Record<string, string> | undefined;
|
|
1686
1750
|
}): Promise<URL>;
|
|
1687
1751
|
validateAuthorizationCode: ({
|
|
1688
1752
|
code,
|
|
@@ -1723,7 +1787,8 @@ declare const socialProviders: {
|
|
|
1723
1787
|
state,
|
|
1724
1788
|
scopes,
|
|
1725
1789
|
codeVerifier,
|
|
1726
|
-
redirectURI
|
|
1790
|
+
redirectURI,
|
|
1791
|
+
additionalParams
|
|
1727
1792
|
}: {
|
|
1728
1793
|
state: string;
|
|
1729
1794
|
codeVerifier: string;
|
|
@@ -1731,6 +1796,7 @@ declare const socialProviders: {
|
|
|
1731
1796
|
redirectURI: string;
|
|
1732
1797
|
display?: string | undefined;
|
|
1733
1798
|
loginHint?: string | undefined;
|
|
1799
|
+
additionalParams?: Record<string, string> | undefined;
|
|
1734
1800
|
}): Promise<URL>;
|
|
1735
1801
|
validateAuthorizationCode: ({
|
|
1736
1802
|
code,
|
|
@@ -1769,7 +1835,8 @@ declare const socialProviders: {
|
|
|
1769
1835
|
createAuthorizationURL({
|
|
1770
1836
|
state,
|
|
1771
1837
|
scopes,
|
|
1772
|
-
redirectURI
|
|
1838
|
+
redirectURI,
|
|
1839
|
+
additionalParams
|
|
1773
1840
|
}: {
|
|
1774
1841
|
state: string;
|
|
1775
1842
|
codeVerifier: string;
|
|
@@ -1777,6 +1844,7 @@ declare const socialProviders: {
|
|
|
1777
1844
|
redirectURI: string;
|
|
1778
1845
|
display?: string | undefined;
|
|
1779
1846
|
loginHint?: string | undefined;
|
|
1847
|
+
additionalParams?: Record<string, string> | undefined;
|
|
1780
1848
|
}): URL;
|
|
1781
1849
|
validateAuthorizationCode: ({
|
|
1782
1850
|
code
|
|
@@ -96,7 +96,8 @@ declare const kakao: (options: KakaoOptions) => {
|
|
|
96
96
|
createAuthorizationURL({
|
|
97
97
|
state,
|
|
98
98
|
scopes,
|
|
99
|
-
redirectURI
|
|
99
|
+
redirectURI,
|
|
100
|
+
additionalParams
|
|
100
101
|
}: {
|
|
101
102
|
state: string;
|
|
102
103
|
codeVerifier: string;
|
|
@@ -104,6 +105,7 @@ declare const kakao: (options: KakaoOptions) => {
|
|
|
104
105
|
redirectURI: string;
|
|
105
106
|
display?: string | undefined;
|
|
106
107
|
loginHint?: string | undefined;
|
|
108
|
+
additionalParams?: Record<string, string> | undefined;
|
|
107
109
|
}): Promise<URL>;
|
|
108
110
|
validateAuthorizationCode: ({
|
|
109
111
|
code,
|
|
@@ -8,7 +8,7 @@ const kakao = (options) => {
|
|
|
8
8
|
return {
|
|
9
9
|
id: "kakao",
|
|
10
10
|
name: "Kakao",
|
|
11
|
-
createAuthorizationURL({ state, scopes, redirectURI }) {
|
|
11
|
+
createAuthorizationURL({ state, scopes, redirectURI, additionalParams }) {
|
|
12
12
|
const _scopes = options.disableDefaultScope ? [] : [
|
|
13
13
|
"account_email",
|
|
14
14
|
"profile_image",
|
|
@@ -22,7 +22,8 @@ const kakao = (options) => {
|
|
|
22
22
|
authorizationEndpoint: "https://kauth.kakao.com/oauth/authorize",
|
|
23
23
|
scopes: _scopes,
|
|
24
24
|
state,
|
|
25
|
-
redirectURI
|
|
25
|
+
redirectURI,
|
|
26
|
+
additionalParams
|
|
26
27
|
});
|
|
27
28
|
},
|
|
28
29
|
validateAuthorizationCode: async ({ code, redirectURI }) => {
|
|
@@ -28,7 +28,8 @@ declare const kick: (options: KickOptions) => {
|
|
|
28
28
|
state,
|
|
29
29
|
scopes,
|
|
30
30
|
redirectURI,
|
|
31
|
-
codeVerifier
|
|
31
|
+
codeVerifier,
|
|
32
|
+
additionalParams
|
|
32
33
|
}: {
|
|
33
34
|
state: string;
|
|
34
35
|
codeVerifier: string;
|
|
@@ -36,6 +37,7 @@ declare const kick: (options: KickOptions) => {
|
|
|
36
37
|
redirectURI: string;
|
|
37
38
|
display?: string | undefined;
|
|
38
39
|
loginHint?: string | undefined;
|
|
40
|
+
additionalParams?: Record<string, string> | undefined;
|
|
39
41
|
}): Promise<URL>;
|
|
40
42
|
validateAuthorizationCode({
|
|
41
43
|
code,
|
|
@@ -7,7 +7,7 @@ const kick = (options) => {
|
|
|
7
7
|
return {
|
|
8
8
|
id: "kick",
|
|
9
9
|
name: "Kick",
|
|
10
|
-
createAuthorizationURL({ state, scopes, redirectURI, codeVerifier }) {
|
|
10
|
+
createAuthorizationURL({ state, scopes, redirectURI, codeVerifier, additionalParams }) {
|
|
11
11
|
const _scopes = options.disableDefaultScope ? [] : ["user:read"];
|
|
12
12
|
if (options.scope) _scopes.push(...options.scope);
|
|
13
13
|
if (scopes) _scopes.push(...scopes);
|
|
@@ -18,7 +18,8 @@ const kick = (options) => {
|
|
|
18
18
|
authorizationEndpoint: "https://id.kick.com/oauth/authorize",
|
|
19
19
|
scopes: _scopes,
|
|
20
20
|
codeVerifier,
|
|
21
|
-
state
|
|
21
|
+
state,
|
|
22
|
+
additionalParams
|
|
22
23
|
});
|
|
23
24
|
},
|
|
24
25
|
async validateAuthorizationCode({ code, redirectURI, codeVerifier }) {
|
|
@@ -38,7 +38,8 @@ declare const line: (options: LineOptions) => {
|
|
|
38
38
|
scopes,
|
|
39
39
|
codeVerifier,
|
|
40
40
|
redirectURI,
|
|
41
|
-
loginHint
|
|
41
|
+
loginHint,
|
|
42
|
+
additionalParams
|
|
42
43
|
}: {
|
|
43
44
|
state: string;
|
|
44
45
|
codeVerifier: string;
|
|
@@ -46,6 +47,7 @@ declare const line: (options: LineOptions) => {
|
|
|
46
47
|
redirectURI: string;
|
|
47
48
|
display?: string | undefined;
|
|
48
49
|
loginHint?: string | undefined;
|
|
50
|
+
additionalParams?: Record<string, string> | undefined;
|
|
49
51
|
}): Promise<URL>;
|
|
50
52
|
validateAuthorizationCode: ({
|
|
51
53
|
code,
|
|
@@ -21,7 +21,7 @@ const line = (options) => {
|
|
|
21
21
|
return {
|
|
22
22
|
id: "line",
|
|
23
23
|
name: "LINE",
|
|
24
|
-
async createAuthorizationURL({ state, scopes, codeVerifier, redirectURI, loginHint }) {
|
|
24
|
+
async createAuthorizationURL({ state, scopes, codeVerifier, redirectURI, loginHint, additionalParams }) {
|
|
25
25
|
const _scopes = options.disableDefaultScope ? [] : [
|
|
26
26
|
"openid",
|
|
27
27
|
"profile",
|
|
@@ -37,7 +37,8 @@ const line = (options) => {
|
|
|
37
37
|
state,
|
|
38
38
|
codeVerifier,
|
|
39
39
|
redirectURI,
|
|
40
|
-
loginHint
|
|
40
|
+
loginHint,
|
|
41
|
+
additionalParams
|
|
41
42
|
});
|
|
42
43
|
},
|
|
43
44
|
validateAuthorizationCode: async ({ code, codeVerifier, redirectURI }) => {
|