@better-auth/core 1.7.0-beta.6 → 1.7.0-beta.8
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/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 +4 -5
- package/dist/oauth2/create-authorization-url.mjs +4 -5
- package/dist/oauth2/index.d.mts +3 -4
- package/dist/oauth2/index.mjs +2 -3
- package/dist/oauth2/oauth-provider.d.mts +44 -48
- package/dist/oauth2/refresh-access-token.mjs +17 -2
- 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 +3 -5
- package/dist/social-providers/apple.mjs +5 -5
- package/dist/social-providers/atlassian.d.mts +3 -5
- package/dist/social-providers/atlassian.mjs +4 -4
- package/dist/social-providers/cognito.d.mts +3 -5
- package/dist/social-providers/cognito.mjs +11 -18
- package/dist/social-providers/discord.d.mts +3 -5
- package/dist/social-providers/discord.mjs +6 -7
- package/dist/social-providers/dropbox.d.mts +3 -5
- package/dist/social-providers/dropbox.mjs +5 -5
- package/dist/social-providers/facebook.d.mts +3 -5
- package/dist/social-providers/facebook.mjs +5 -5
- package/dist/social-providers/figma.d.mts +3 -5
- package/dist/social-providers/figma.mjs +5 -5
- package/dist/social-providers/github.d.mts +3 -5
- package/dist/social-providers/github.mjs +4 -4
- package/dist/social-providers/gitlab.d.mts +3 -5
- package/dist/social-providers/gitlab.mjs +6 -6
- package/dist/social-providers/google.d.mts +10 -10
- package/dist/social-providers/google.mjs +12 -13
- package/dist/social-providers/huggingface.d.mts +3 -5
- package/dist/social-providers/huggingface.mjs +8 -8
- package/dist/social-providers/index.d.mts +105 -177
- package/dist/social-providers/kakao.d.mts +3 -5
- package/dist/social-providers/kakao.mjs +8 -8
- package/dist/social-providers/kick.d.mts +3 -5
- package/dist/social-providers/kick.mjs +4 -4
- package/dist/social-providers/line.d.mts +3 -5
- package/dist/social-providers/line.mjs +10 -10
- package/dist/social-providers/linear.d.mts +3 -5
- package/dist/social-providers/linear.mjs +4 -4
- package/dist/social-providers/linkedin.d.mts +3 -5
- package/dist/social-providers/linkedin.mjs +10 -10
- package/dist/social-providers/microsoft-entra-id.d.mts +3 -5
- package/dist/social-providers/microsoft-entra-id.mjs +10 -11
- package/dist/social-providers/naver.d.mts +3 -5
- package/dist/social-providers/naver.mjs +4 -4
- package/dist/social-providers/notion.d.mts +3 -5
- package/dist/social-providers/notion.mjs +4 -4
- package/dist/social-providers/paybin.d.mts +3 -5
- package/dist/social-providers/paybin.mjs +10 -10
- package/dist/social-providers/paypal.d.mts +3 -5
- package/dist/social-providers/paypal.mjs +2 -8
- package/dist/social-providers/polar.d.mts +3 -5
- package/dist/social-providers/polar.mjs +8 -8
- package/dist/social-providers/railway.d.mts +3 -5
- package/dist/social-providers/railway.mjs +9 -9
- package/dist/social-providers/reddit.d.mts +3 -5
- package/dist/social-providers/reddit.mjs +5 -5
- package/dist/social-providers/roblox.d.mts +3 -5
- package/dist/social-providers/roblox.mjs +5 -5
- package/dist/social-providers/salesforce.d.mts +3 -5
- package/dist/social-providers/salesforce.mjs +8 -8
- package/dist/social-providers/slack.d.mts +3 -5
- package/dist/social-providers/slack.mjs +9 -9
- package/dist/social-providers/spotify.d.mts +3 -5
- package/dist/social-providers/spotify.mjs +5 -5
- package/dist/social-providers/tiktok.d.mts +3 -5
- package/dist/social-providers/tiktok.mjs +5 -9
- package/dist/social-providers/twitch.d.mts +3 -5
- package/dist/social-providers/twitch.mjs +4 -4
- package/dist/social-providers/twitter.d.mts +3 -5
- package/dist/social-providers/twitter.mjs +9 -9
- package/dist/social-providers/vercel.d.mts +3 -5
- package/dist/social-providers/vercel.mjs +7 -4
- package/dist/social-providers/vk.d.mts +3 -5
- package/dist/social-providers/vk.mjs +5 -5
- package/dist/social-providers/wechat.d.mts +3 -5
- package/dist/social-providers/wechat.mjs +5 -9
- package/dist/social-providers/zoom.d.mts +3 -6
- package/dist/social-providers/zoom.mjs +9 -15
- package/dist/types/context.d.mts +6 -2
- package/dist/utils/host.d.mts +1 -1
- package/dist/utils/host.mjs +3 -0
- 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 +5 -1
- package/src/oauth2/index.ts +3 -12
- package/src/oauth2/oauth-provider.ts +46 -53
- package/src/oauth2/refresh-access-token.ts +30 -5
- package/src/oauth2/utils.ts +39 -1
- package/src/oauth2/verify-id-token.ts +9 -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/src/utils/host.ts +10 -1
- 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,
|
|
@@ -56,11 +55,9 @@ declare const socialProviders: {
|
|
|
56
55
|
redirectURI: string;
|
|
57
56
|
display?: string | undefined;
|
|
58
57
|
loginHint?: string | undefined;
|
|
58
|
+
idTokenNonce?: string | undefined;
|
|
59
59
|
additionalParams?: Record<string, string> | undefined;
|
|
60
|
-
}): Promise<
|
|
61
|
-
url: URL;
|
|
62
|
-
requestedScopes: string[];
|
|
63
|
-
}>;
|
|
60
|
+
}): Promise<URL>;
|
|
64
61
|
validateAuthorizationCode: ({
|
|
65
62
|
code,
|
|
66
63
|
codeVerifier,
|
|
@@ -80,6 +77,7 @@ declare const socialProviders: {
|
|
|
80
77
|
};
|
|
81
78
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
82
79
|
getUserInfo(token: OAuth2Tokens & {
|
|
80
|
+
expectedIdTokenNonce?: string | undefined;
|
|
83
81
|
user?: {
|
|
84
82
|
name?: {
|
|
85
83
|
firstName?: string;
|
|
@@ -103,7 +101,6 @@ declare const socialProviders: {
|
|
|
103
101
|
atlassian: (options: AtlassianOptions) => {
|
|
104
102
|
id: "atlassian";
|
|
105
103
|
name: string;
|
|
106
|
-
callbackPath: string;
|
|
107
104
|
createAuthorizationURL({
|
|
108
105
|
state,
|
|
109
106
|
scopes,
|
|
@@ -117,11 +114,9 @@ declare const socialProviders: {
|
|
|
117
114
|
redirectURI: string;
|
|
118
115
|
display?: string | undefined;
|
|
119
116
|
loginHint?: string | undefined;
|
|
117
|
+
idTokenNonce?: string | undefined;
|
|
120
118
|
additionalParams?: Record<string, string> | undefined;
|
|
121
|
-
}): Promise<
|
|
122
|
-
url: URL;
|
|
123
|
-
requestedScopes: string[];
|
|
124
|
-
}>;
|
|
119
|
+
}): Promise<URL>;
|
|
125
120
|
validateAuthorizationCode: ({
|
|
126
121
|
code,
|
|
127
122
|
codeVerifier,
|
|
@@ -134,6 +129,7 @@ declare const socialProviders: {
|
|
|
134
129
|
}) => Promise<OAuth2Tokens>;
|
|
135
130
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
136
131
|
getUserInfo(token: OAuth2Tokens & {
|
|
132
|
+
expectedIdTokenNonce?: string | undefined;
|
|
137
133
|
user?: {
|
|
138
134
|
name?: {
|
|
139
135
|
firstName?: string;
|
|
@@ -157,7 +153,6 @@ declare const socialProviders: {
|
|
|
157
153
|
cognito: (options: CognitoOptions) => {
|
|
158
154
|
id: "cognito";
|
|
159
155
|
name: string;
|
|
160
|
-
callbackPath: string;
|
|
161
156
|
createAuthorizationURL({
|
|
162
157
|
state,
|
|
163
158
|
scopes,
|
|
@@ -171,11 +166,9 @@ declare const socialProviders: {
|
|
|
171
166
|
redirectURI: string;
|
|
172
167
|
display?: string | undefined;
|
|
173
168
|
loginHint?: string | undefined;
|
|
169
|
+
idTokenNonce?: string | undefined;
|
|
174
170
|
additionalParams?: Record<string, string> | undefined;
|
|
175
|
-
}): Promise<
|
|
176
|
-
url: URL;
|
|
177
|
-
requestedScopes: string[];
|
|
178
|
-
}>;
|
|
171
|
+
}): Promise<URL>;
|
|
179
172
|
validateAuthorizationCode: ({
|
|
180
173
|
code,
|
|
181
174
|
codeVerifier,
|
|
@@ -194,6 +187,7 @@ declare const socialProviders: {
|
|
|
194
187
|
maxTokenAge: string;
|
|
195
188
|
};
|
|
196
189
|
getUserInfo(token: OAuth2Tokens & {
|
|
190
|
+
expectedIdTokenNonce?: string | undefined;
|
|
197
191
|
user?: {
|
|
198
192
|
name?: {
|
|
199
193
|
firstName?: string;
|
|
@@ -217,7 +211,6 @@ declare const socialProviders: {
|
|
|
217
211
|
discord: (options: DiscordOptions) => {
|
|
218
212
|
id: "discord";
|
|
219
213
|
name: string;
|
|
220
|
-
callbackPath: string;
|
|
221
214
|
createAuthorizationURL({
|
|
222
215
|
state,
|
|
223
216
|
scopes,
|
|
@@ -230,11 +223,9 @@ declare const socialProviders: {
|
|
|
230
223
|
redirectURI: string;
|
|
231
224
|
display?: string | undefined;
|
|
232
225
|
loginHint?: string | undefined;
|
|
226
|
+
idTokenNonce?: string | undefined;
|
|
233
227
|
additionalParams?: Record<string, string> | undefined;
|
|
234
|
-
}): Promise<
|
|
235
|
-
url: URL;
|
|
236
|
-
requestedScopes: string[];
|
|
237
|
-
}>;
|
|
228
|
+
}): Promise<URL>;
|
|
238
229
|
validateAuthorizationCode: ({
|
|
239
230
|
code,
|
|
240
231
|
redirectURI
|
|
@@ -246,6 +237,7 @@ declare const socialProviders: {
|
|
|
246
237
|
}) => Promise<OAuth2Tokens>;
|
|
247
238
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
248
239
|
getUserInfo(token: OAuth2Tokens & {
|
|
240
|
+
expectedIdTokenNonce?: string | undefined;
|
|
249
241
|
user?: {
|
|
250
242
|
name?: {
|
|
251
243
|
firstName?: string;
|
|
@@ -269,7 +261,6 @@ declare const socialProviders: {
|
|
|
269
261
|
facebook: (options: FacebookOptions) => {
|
|
270
262
|
id: "facebook";
|
|
271
263
|
name: string;
|
|
272
|
-
callbackPath: string;
|
|
273
264
|
createAuthorizationURL({
|
|
274
265
|
state,
|
|
275
266
|
scopes,
|
|
@@ -283,11 +274,9 @@ declare const socialProviders: {
|
|
|
283
274
|
redirectURI: string;
|
|
284
275
|
display?: string | undefined;
|
|
285
276
|
loginHint?: string | undefined;
|
|
277
|
+
idTokenNonce?: string | undefined;
|
|
286
278
|
additionalParams?: Record<string, string> | undefined;
|
|
287
|
-
}): Promise<
|
|
288
|
-
url: URL;
|
|
289
|
-
requestedScopes: string[];
|
|
290
|
-
}>;
|
|
279
|
+
}): Promise<URL>;
|
|
291
280
|
validateAuthorizationCode: ({
|
|
292
281
|
code,
|
|
293
282
|
redirectURI
|
|
@@ -313,6 +302,7 @@ declare const socialProviders: {
|
|
|
313
302
|
};
|
|
314
303
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
315
304
|
getUserInfo(token: OAuth2Tokens & {
|
|
305
|
+
expectedIdTokenNonce?: string | undefined;
|
|
316
306
|
user?: {
|
|
317
307
|
name?: {
|
|
318
308
|
firstName?: string;
|
|
@@ -336,7 +326,6 @@ declare const socialProviders: {
|
|
|
336
326
|
figma: (options: FigmaOptions) => {
|
|
337
327
|
id: "figma";
|
|
338
328
|
name: string;
|
|
339
|
-
callbackPath: string;
|
|
340
329
|
createAuthorizationURL({
|
|
341
330
|
state,
|
|
342
331
|
scopes,
|
|
@@ -350,11 +339,9 @@ declare const socialProviders: {
|
|
|
350
339
|
redirectURI: string;
|
|
351
340
|
display?: string | undefined;
|
|
352
341
|
loginHint?: string | undefined;
|
|
342
|
+
idTokenNonce?: string | undefined;
|
|
353
343
|
additionalParams?: Record<string, string> | undefined;
|
|
354
|
-
}): Promise<
|
|
355
|
-
url: URL;
|
|
356
|
-
requestedScopes: string[];
|
|
357
|
-
}>;
|
|
344
|
+
}): Promise<URL>;
|
|
358
345
|
validateAuthorizationCode: ({
|
|
359
346
|
code,
|
|
360
347
|
codeVerifier,
|
|
@@ -367,6 +354,7 @@ declare const socialProviders: {
|
|
|
367
354
|
}) => Promise<OAuth2Tokens>;
|
|
368
355
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
369
356
|
getUserInfo(token: OAuth2Tokens & {
|
|
357
|
+
expectedIdTokenNonce?: string | undefined;
|
|
370
358
|
user?: {
|
|
371
359
|
name?: {
|
|
372
360
|
firstName?: string;
|
|
@@ -390,7 +378,6 @@ declare const socialProviders: {
|
|
|
390
378
|
github: (options: GithubOptions) => {
|
|
391
379
|
id: "github";
|
|
392
380
|
name: string;
|
|
393
|
-
callbackPath: string;
|
|
394
381
|
createAuthorizationURL({
|
|
395
382
|
state,
|
|
396
383
|
scopes,
|
|
@@ -405,11 +392,9 @@ declare const socialProviders: {
|
|
|
405
392
|
redirectURI: string;
|
|
406
393
|
display?: string | undefined;
|
|
407
394
|
loginHint?: string | undefined;
|
|
395
|
+
idTokenNonce?: string | undefined;
|
|
408
396
|
additionalParams?: Record<string, string> | undefined;
|
|
409
|
-
}): Promise<
|
|
410
|
-
url: URL;
|
|
411
|
-
requestedScopes: string[];
|
|
412
|
-
}>;
|
|
397
|
+
}): Promise<URL>;
|
|
413
398
|
validateAuthorizationCode: ({
|
|
414
399
|
code,
|
|
415
400
|
codeVerifier,
|
|
@@ -422,6 +407,7 @@ declare const socialProviders: {
|
|
|
422
407
|
}) => Promise<OAuth2Tokens | null>;
|
|
423
408
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
424
409
|
getUserInfo(token: OAuth2Tokens & {
|
|
410
|
+
expectedIdTokenNonce?: string | undefined;
|
|
425
411
|
user?: {
|
|
426
412
|
name?: {
|
|
427
413
|
firstName?: string;
|
|
@@ -445,7 +431,6 @@ declare const socialProviders: {
|
|
|
445
431
|
microsoft: (options: MicrosoftOptions) => {
|
|
446
432
|
id: "microsoft";
|
|
447
433
|
name: string;
|
|
448
|
-
callbackPath: string;
|
|
449
434
|
createAuthorizationURL(data: {
|
|
450
435
|
state: string;
|
|
451
436
|
codeVerifier: string;
|
|
@@ -453,11 +438,9 @@ declare const socialProviders: {
|
|
|
453
438
|
redirectURI: string;
|
|
454
439
|
display?: string | undefined;
|
|
455
440
|
loginHint?: string | undefined;
|
|
441
|
+
idTokenNonce?: string | undefined;
|
|
456
442
|
additionalParams?: Record<string, string> | undefined;
|
|
457
|
-
}): Promise<
|
|
458
|
-
url: URL;
|
|
459
|
-
requestedScopes: string[];
|
|
460
|
-
}>;
|
|
443
|
+
}): Promise<URL>;
|
|
461
444
|
validateAuthorizationCode({
|
|
462
445
|
code,
|
|
463
446
|
codeVerifier,
|
|
@@ -476,6 +459,7 @@ declare const socialProviders: {
|
|
|
476
459
|
verifyClaims: (claims: Record<string, unknown>) => boolean;
|
|
477
460
|
};
|
|
478
461
|
getUserInfo(token: OAuth2Tokens & {
|
|
462
|
+
expectedIdTokenNonce?: string | undefined;
|
|
479
463
|
user?: {
|
|
480
464
|
name?: {
|
|
481
465
|
firstName?: string;
|
|
@@ -500,8 +484,6 @@ declare const socialProviders: {
|
|
|
500
484
|
google: (options: GoogleOptions) => {
|
|
501
485
|
id: "google";
|
|
502
486
|
name: string;
|
|
503
|
-
callbackPath: string;
|
|
504
|
-
grantAuthority: "full-grant" | "projection";
|
|
505
487
|
createAuthorizationURL({
|
|
506
488
|
state,
|
|
507
489
|
scopes,
|
|
@@ -517,11 +499,9 @@ declare const socialProviders: {
|
|
|
517
499
|
redirectURI: string;
|
|
518
500
|
display?: string | undefined;
|
|
519
501
|
loginHint?: string | undefined;
|
|
502
|
+
idTokenNonce?: string | undefined;
|
|
520
503
|
additionalParams?: Record<string, string> | undefined;
|
|
521
|
-
}): Promise<
|
|
522
|
-
url: URL;
|
|
523
|
-
requestedScopes: string[];
|
|
524
|
-
}>;
|
|
504
|
+
}): Promise<URL>;
|
|
525
505
|
validateAuthorizationCode: ({
|
|
526
506
|
code,
|
|
527
507
|
codeVerifier,
|
|
@@ -541,6 +521,7 @@ declare const socialProviders: {
|
|
|
541
521
|
verifyClaims: ((claims: Record<string, unknown>) => boolean) | undefined;
|
|
542
522
|
};
|
|
543
523
|
getUserInfo(token: OAuth2Tokens & {
|
|
524
|
+
expectedIdTokenNonce?: string | undefined;
|
|
544
525
|
user?: {
|
|
545
526
|
name?: {
|
|
546
527
|
firstName?: string;
|
|
@@ -564,7 +545,6 @@ declare const socialProviders: {
|
|
|
564
545
|
huggingface: (options: HuggingFaceOptions) => {
|
|
565
546
|
id: "huggingface";
|
|
566
547
|
name: string;
|
|
567
|
-
callbackPath: string;
|
|
568
548
|
createAuthorizationURL({
|
|
569
549
|
state,
|
|
570
550
|
scopes,
|
|
@@ -578,11 +558,9 @@ declare const socialProviders: {
|
|
|
578
558
|
redirectURI: string;
|
|
579
559
|
display?: string | undefined;
|
|
580
560
|
loginHint?: string | undefined;
|
|
561
|
+
idTokenNonce?: string | undefined;
|
|
581
562
|
additionalParams?: Record<string, string> | undefined;
|
|
582
|
-
}): Promise<
|
|
583
|
-
url: URL;
|
|
584
|
-
requestedScopes: string[];
|
|
585
|
-
}>;
|
|
563
|
+
}): Promise<URL>;
|
|
586
564
|
validateAuthorizationCode: ({
|
|
587
565
|
code,
|
|
588
566
|
codeVerifier,
|
|
@@ -595,6 +573,7 @@ declare const socialProviders: {
|
|
|
595
573
|
}) => Promise<OAuth2Tokens>;
|
|
596
574
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
597
575
|
getUserInfo(token: OAuth2Tokens & {
|
|
576
|
+
expectedIdTokenNonce?: string | undefined;
|
|
598
577
|
user?: {
|
|
599
578
|
name?: {
|
|
600
579
|
firstName?: string;
|
|
@@ -618,7 +597,6 @@ declare const socialProviders: {
|
|
|
618
597
|
slack: (options: SlackOptions) => {
|
|
619
598
|
id: "slack";
|
|
620
599
|
name: string;
|
|
621
|
-
callbackPath: string;
|
|
622
600
|
createAuthorizationURL({
|
|
623
601
|
state,
|
|
624
602
|
scopes,
|
|
@@ -631,11 +609,9 @@ declare const socialProviders: {
|
|
|
631
609
|
redirectURI: string;
|
|
632
610
|
display?: string | undefined;
|
|
633
611
|
loginHint?: string | undefined;
|
|
612
|
+
idTokenNonce?: string | undefined;
|
|
634
613
|
additionalParams?: Record<string, string> | undefined;
|
|
635
|
-
}): Promise<
|
|
636
|
-
url: URL;
|
|
637
|
-
requestedScopes: string[];
|
|
638
|
-
}>;
|
|
614
|
+
}): Promise<URL>;
|
|
639
615
|
validateAuthorizationCode: ({
|
|
640
616
|
code,
|
|
641
617
|
redirectURI
|
|
@@ -647,6 +623,7 @@ declare const socialProviders: {
|
|
|
647
623
|
}) => Promise<OAuth2Tokens>;
|
|
648
624
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
649
625
|
getUserInfo(token: OAuth2Tokens & {
|
|
626
|
+
expectedIdTokenNonce?: string | undefined;
|
|
650
627
|
user?: {
|
|
651
628
|
name?: {
|
|
652
629
|
firstName?: string;
|
|
@@ -670,7 +647,6 @@ declare const socialProviders: {
|
|
|
670
647
|
spotify: (options: SpotifyOptions) => {
|
|
671
648
|
id: "spotify";
|
|
672
649
|
name: string;
|
|
673
|
-
callbackPath: string;
|
|
674
650
|
createAuthorizationURL({
|
|
675
651
|
state,
|
|
676
652
|
scopes,
|
|
@@ -684,11 +660,9 @@ declare const socialProviders: {
|
|
|
684
660
|
redirectURI: string;
|
|
685
661
|
display?: string | undefined;
|
|
686
662
|
loginHint?: string | undefined;
|
|
663
|
+
idTokenNonce?: string | undefined;
|
|
687
664
|
additionalParams?: Record<string, string> | undefined;
|
|
688
|
-
}): Promise<
|
|
689
|
-
url: URL;
|
|
690
|
-
requestedScopes: string[];
|
|
691
|
-
}>;
|
|
665
|
+
}): Promise<URL>;
|
|
692
666
|
validateAuthorizationCode: ({
|
|
693
667
|
code,
|
|
694
668
|
codeVerifier,
|
|
@@ -701,6 +675,7 @@ declare const socialProviders: {
|
|
|
701
675
|
}) => Promise<OAuth2Tokens>;
|
|
702
676
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
703
677
|
getUserInfo(token: OAuth2Tokens & {
|
|
678
|
+
expectedIdTokenNonce?: string | undefined;
|
|
704
679
|
user?: {
|
|
705
680
|
name?: {
|
|
706
681
|
firstName?: string;
|
|
@@ -724,7 +699,6 @@ declare const socialProviders: {
|
|
|
724
699
|
twitch: (options: TwitchOptions) => {
|
|
725
700
|
id: "twitch";
|
|
726
701
|
name: string;
|
|
727
|
-
callbackPath: string;
|
|
728
702
|
createAuthorizationURL({
|
|
729
703
|
state,
|
|
730
704
|
scopes,
|
|
@@ -737,11 +711,9 @@ declare const socialProviders: {
|
|
|
737
711
|
redirectURI: string;
|
|
738
712
|
display?: string | undefined;
|
|
739
713
|
loginHint?: string | undefined;
|
|
714
|
+
idTokenNonce?: string | undefined;
|
|
740
715
|
additionalParams?: Record<string, string> | undefined;
|
|
741
|
-
}): Promise<
|
|
742
|
-
url: URL;
|
|
743
|
-
requestedScopes: string[];
|
|
744
|
-
}>;
|
|
716
|
+
}): Promise<URL>;
|
|
745
717
|
validateAuthorizationCode: ({
|
|
746
718
|
code,
|
|
747
719
|
redirectURI
|
|
@@ -753,6 +725,7 @@ declare const socialProviders: {
|
|
|
753
725
|
}) => Promise<OAuth2Tokens>;
|
|
754
726
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
755
727
|
getUserInfo(token: OAuth2Tokens & {
|
|
728
|
+
expectedIdTokenNonce?: string | undefined;
|
|
756
729
|
user?: {
|
|
757
730
|
name?: {
|
|
758
731
|
firstName?: string;
|
|
@@ -776,7 +749,6 @@ declare const socialProviders: {
|
|
|
776
749
|
twitter: (options: TwitterOption) => {
|
|
777
750
|
id: "twitter";
|
|
778
751
|
name: string;
|
|
779
|
-
callbackPath: string;
|
|
780
752
|
createAuthorizationURL(data: {
|
|
781
753
|
state: string;
|
|
782
754
|
codeVerifier: string;
|
|
@@ -784,11 +756,9 @@ declare const socialProviders: {
|
|
|
784
756
|
redirectURI: string;
|
|
785
757
|
display?: string | undefined;
|
|
786
758
|
loginHint?: string | undefined;
|
|
759
|
+
idTokenNonce?: string | undefined;
|
|
787
760
|
additionalParams?: Record<string, string> | undefined;
|
|
788
|
-
}): Promise<
|
|
789
|
-
url: URL;
|
|
790
|
-
requestedScopes: string[];
|
|
791
|
-
}>;
|
|
761
|
+
}): Promise<URL>;
|
|
792
762
|
validateAuthorizationCode: ({
|
|
793
763
|
code,
|
|
794
764
|
codeVerifier,
|
|
@@ -801,6 +771,7 @@ declare const socialProviders: {
|
|
|
801
771
|
}) => Promise<OAuth2Tokens>;
|
|
802
772
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
803
773
|
getUserInfo(token: OAuth2Tokens & {
|
|
774
|
+
expectedIdTokenNonce?: string | undefined;
|
|
804
775
|
user?: {
|
|
805
776
|
name?: {
|
|
806
777
|
firstName?: string;
|
|
@@ -824,7 +795,6 @@ declare const socialProviders: {
|
|
|
824
795
|
dropbox: (options: DropboxOptions) => {
|
|
825
796
|
id: "dropbox";
|
|
826
797
|
name: string;
|
|
827
|
-
callbackPath: string;
|
|
828
798
|
createAuthorizationURL: ({
|
|
829
799
|
state,
|
|
830
800
|
scopes,
|
|
@@ -838,11 +808,9 @@ declare const socialProviders: {
|
|
|
838
808
|
redirectURI: string;
|
|
839
809
|
display?: string | undefined;
|
|
840
810
|
loginHint?: string | undefined;
|
|
811
|
+
idTokenNonce?: string | undefined;
|
|
841
812
|
additionalParams?: Record<string, string> | undefined;
|
|
842
|
-
}) => Promise<
|
|
843
|
-
url: URL;
|
|
844
|
-
requestedScopes: string[];
|
|
845
|
-
}>;
|
|
813
|
+
}) => Promise<URL>;
|
|
846
814
|
validateAuthorizationCode: ({
|
|
847
815
|
code,
|
|
848
816
|
codeVerifier,
|
|
@@ -855,6 +823,7 @@ declare const socialProviders: {
|
|
|
855
823
|
}) => Promise<OAuth2Tokens>;
|
|
856
824
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
857
825
|
getUserInfo(token: OAuth2Tokens & {
|
|
826
|
+
expectedIdTokenNonce?: string | undefined;
|
|
858
827
|
user?: {
|
|
859
828
|
name?: {
|
|
860
829
|
firstName?: string;
|
|
@@ -878,7 +847,6 @@ declare const socialProviders: {
|
|
|
878
847
|
kick: (options: KickOptions) => {
|
|
879
848
|
id: "kick";
|
|
880
849
|
name: string;
|
|
881
|
-
callbackPath: string;
|
|
882
850
|
createAuthorizationURL({
|
|
883
851
|
state,
|
|
884
852
|
scopes,
|
|
@@ -892,11 +860,9 @@ declare const socialProviders: {
|
|
|
892
860
|
redirectURI: string;
|
|
893
861
|
display?: string | undefined;
|
|
894
862
|
loginHint?: string | undefined;
|
|
863
|
+
idTokenNonce?: string | undefined;
|
|
895
864
|
additionalParams?: Record<string, string> | undefined;
|
|
896
|
-
}): Promise<
|
|
897
|
-
url: URL;
|
|
898
|
-
requestedScopes: string[];
|
|
899
|
-
}>;
|
|
865
|
+
}): Promise<URL>;
|
|
900
866
|
validateAuthorizationCode({
|
|
901
867
|
code,
|
|
902
868
|
redirectURI,
|
|
@@ -909,6 +875,7 @@ declare const socialProviders: {
|
|
|
909
875
|
}): Promise<OAuth2Tokens>;
|
|
910
876
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
911
877
|
getUserInfo(token: OAuth2Tokens & {
|
|
878
|
+
expectedIdTokenNonce?: string | undefined;
|
|
912
879
|
user?: {
|
|
913
880
|
name?: {
|
|
914
881
|
firstName?: string;
|
|
@@ -932,7 +899,6 @@ declare const socialProviders: {
|
|
|
932
899
|
linear: (options: LinearOptions) => {
|
|
933
900
|
id: "linear";
|
|
934
901
|
name: string;
|
|
935
|
-
callbackPath: string;
|
|
936
902
|
createAuthorizationURL({
|
|
937
903
|
state,
|
|
938
904
|
scopes,
|
|
@@ -946,11 +912,9 @@ declare const socialProviders: {
|
|
|
946
912
|
redirectURI: string;
|
|
947
913
|
display?: string | undefined;
|
|
948
914
|
loginHint?: string | undefined;
|
|
915
|
+
idTokenNonce?: string | undefined;
|
|
949
916
|
additionalParams?: Record<string, string> | undefined;
|
|
950
|
-
}): Promise<
|
|
951
|
-
url: URL;
|
|
952
|
-
requestedScopes: string[];
|
|
953
|
-
}>;
|
|
917
|
+
}): Promise<URL>;
|
|
954
918
|
validateAuthorizationCode: ({
|
|
955
919
|
code,
|
|
956
920
|
redirectURI
|
|
@@ -962,6 +926,7 @@ declare const socialProviders: {
|
|
|
962
926
|
}) => Promise<OAuth2Tokens>;
|
|
963
927
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
964
928
|
getUserInfo(token: OAuth2Tokens & {
|
|
929
|
+
expectedIdTokenNonce?: string | undefined;
|
|
965
930
|
user?: {
|
|
966
931
|
name?: {
|
|
967
932
|
firstName?: string;
|
|
@@ -985,7 +950,6 @@ declare const socialProviders: {
|
|
|
985
950
|
linkedin: (options: LinkedInOptions) => {
|
|
986
951
|
id: "linkedin";
|
|
987
952
|
name: string;
|
|
988
|
-
callbackPath: string;
|
|
989
953
|
createAuthorizationURL: ({
|
|
990
954
|
state,
|
|
991
955
|
scopes,
|
|
@@ -999,11 +963,9 @@ declare const socialProviders: {
|
|
|
999
963
|
redirectURI: string;
|
|
1000
964
|
display?: string | undefined;
|
|
1001
965
|
loginHint?: string | undefined;
|
|
966
|
+
idTokenNonce?: string | undefined;
|
|
1002
967
|
additionalParams?: Record<string, string> | undefined;
|
|
1003
|
-
}) => Promise<
|
|
1004
|
-
url: URL;
|
|
1005
|
-
requestedScopes: string[];
|
|
1006
|
-
}>;
|
|
968
|
+
}) => Promise<URL>;
|
|
1007
969
|
validateAuthorizationCode: ({
|
|
1008
970
|
code,
|
|
1009
971
|
redirectURI
|
|
@@ -1015,6 +977,7 @@ declare const socialProviders: {
|
|
|
1015
977
|
}) => Promise<OAuth2Tokens>;
|
|
1016
978
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
1017
979
|
getUserInfo(token: OAuth2Tokens & {
|
|
980
|
+
expectedIdTokenNonce?: string | undefined;
|
|
1018
981
|
user?: {
|
|
1019
982
|
name?: {
|
|
1020
983
|
firstName?: string;
|
|
@@ -1038,7 +1001,6 @@ declare const socialProviders: {
|
|
|
1038
1001
|
gitlab: (options: GitlabOptions) => {
|
|
1039
1002
|
id: "gitlab";
|
|
1040
1003
|
name: string;
|
|
1041
|
-
callbackPath: string;
|
|
1042
1004
|
createAuthorizationURL: ({
|
|
1043
1005
|
state,
|
|
1044
1006
|
scopes,
|
|
@@ -1053,11 +1015,9 @@ declare const socialProviders: {
|
|
|
1053
1015
|
redirectURI: string;
|
|
1054
1016
|
display?: string | undefined;
|
|
1055
1017
|
loginHint?: string | undefined;
|
|
1018
|
+
idTokenNonce?: string | undefined;
|
|
1056
1019
|
additionalParams?: Record<string, string> | undefined;
|
|
1057
|
-
}) => Promise<
|
|
1058
|
-
url: URL;
|
|
1059
|
-
requestedScopes: string[];
|
|
1060
|
-
}>;
|
|
1020
|
+
}) => Promise<URL>;
|
|
1061
1021
|
validateAuthorizationCode: ({
|
|
1062
1022
|
code,
|
|
1063
1023
|
redirectURI,
|
|
@@ -1070,6 +1030,7 @@ declare const socialProviders: {
|
|
|
1070
1030
|
}) => Promise<OAuth2Tokens>;
|
|
1071
1031
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
1072
1032
|
getUserInfo(token: OAuth2Tokens & {
|
|
1033
|
+
expectedIdTokenNonce?: string | undefined;
|
|
1073
1034
|
user?: {
|
|
1074
1035
|
name?: {
|
|
1075
1036
|
firstName?: string;
|
|
@@ -1114,7 +1075,6 @@ declare const socialProviders: {
|
|
|
1114
1075
|
tiktok: (options: TiktokOptions) => {
|
|
1115
1076
|
id: "tiktok";
|
|
1116
1077
|
name: string;
|
|
1117
|
-
callbackPath: string;
|
|
1118
1078
|
createAuthorizationURL({
|
|
1119
1079
|
state,
|
|
1120
1080
|
scopes,
|
|
@@ -1127,11 +1087,9 @@ declare const socialProviders: {
|
|
|
1127
1087
|
redirectURI: string;
|
|
1128
1088
|
display?: string | undefined;
|
|
1129
1089
|
loginHint?: string | undefined;
|
|
1090
|
+
idTokenNonce?: string | undefined;
|
|
1130
1091
|
additionalParams?: Record<string, string> | undefined;
|
|
1131
|
-
}):
|
|
1132
|
-
url: URL;
|
|
1133
|
-
requestedScopes: string[];
|
|
1134
|
-
};
|
|
1092
|
+
}): URL;
|
|
1135
1093
|
validateAuthorizationCode: ({
|
|
1136
1094
|
code,
|
|
1137
1095
|
redirectURI
|
|
@@ -1143,6 +1101,7 @@ declare const socialProviders: {
|
|
|
1143
1101
|
}) => Promise<OAuth2Tokens>;
|
|
1144
1102
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
1145
1103
|
getUserInfo(token: OAuth2Tokens & {
|
|
1104
|
+
expectedIdTokenNonce?: string | undefined;
|
|
1146
1105
|
user?: {
|
|
1147
1106
|
name?: {
|
|
1148
1107
|
firstName?: string;
|
|
@@ -1166,7 +1125,6 @@ declare const socialProviders: {
|
|
|
1166
1125
|
reddit: (options: RedditOptions) => {
|
|
1167
1126
|
id: "reddit";
|
|
1168
1127
|
name: string;
|
|
1169
|
-
callbackPath: string;
|
|
1170
1128
|
createAuthorizationURL({
|
|
1171
1129
|
state,
|
|
1172
1130
|
scopes,
|
|
@@ -1179,11 +1137,9 @@ declare const socialProviders: {
|
|
|
1179
1137
|
redirectURI: string;
|
|
1180
1138
|
display?: string | undefined;
|
|
1181
1139
|
loginHint?: string | undefined;
|
|
1140
|
+
idTokenNonce?: string | undefined;
|
|
1182
1141
|
additionalParams?: Record<string, string> | undefined;
|
|
1183
|
-
}): Promise<
|
|
1184
|
-
url: URL;
|
|
1185
|
-
requestedScopes: string[];
|
|
1186
|
-
}>;
|
|
1142
|
+
}): Promise<URL>;
|
|
1187
1143
|
validateAuthorizationCode: ({
|
|
1188
1144
|
code,
|
|
1189
1145
|
redirectURI
|
|
@@ -1195,6 +1151,7 @@ declare const socialProviders: {
|
|
|
1195
1151
|
}) => Promise<OAuth2Tokens>;
|
|
1196
1152
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
1197
1153
|
getUserInfo(token: OAuth2Tokens & {
|
|
1154
|
+
expectedIdTokenNonce?: string | undefined;
|
|
1198
1155
|
user?: {
|
|
1199
1156
|
name?: {
|
|
1200
1157
|
firstName?: string;
|
|
@@ -1218,7 +1175,6 @@ declare const socialProviders: {
|
|
|
1218
1175
|
roblox: (options: RobloxOptions) => {
|
|
1219
1176
|
id: "roblox";
|
|
1220
1177
|
name: string;
|
|
1221
|
-
callbackPath: string;
|
|
1222
1178
|
createAuthorizationURL({
|
|
1223
1179
|
state,
|
|
1224
1180
|
scopes,
|
|
@@ -1231,11 +1187,9 @@ declare const socialProviders: {
|
|
|
1231
1187
|
redirectURI: string;
|
|
1232
1188
|
display?: string | undefined;
|
|
1233
1189
|
loginHint?: string | undefined;
|
|
1190
|
+
idTokenNonce?: string | undefined;
|
|
1234
1191
|
additionalParams?: Record<string, string> | undefined;
|
|
1235
|
-
}): Promise<
|
|
1236
|
-
url: URL;
|
|
1237
|
-
requestedScopes: string[];
|
|
1238
|
-
}>;
|
|
1192
|
+
}): Promise<URL>;
|
|
1239
1193
|
validateAuthorizationCode: ({
|
|
1240
1194
|
code,
|
|
1241
1195
|
redirectURI
|
|
@@ -1247,6 +1201,7 @@ declare const socialProviders: {
|
|
|
1247
1201
|
}) => Promise<OAuth2Tokens>;
|
|
1248
1202
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
1249
1203
|
getUserInfo(token: OAuth2Tokens & {
|
|
1204
|
+
expectedIdTokenNonce?: string | undefined;
|
|
1250
1205
|
user?: {
|
|
1251
1206
|
name?: {
|
|
1252
1207
|
firstName?: string;
|
|
@@ -1270,7 +1225,6 @@ declare const socialProviders: {
|
|
|
1270
1225
|
salesforce: (options: SalesforceOptions) => {
|
|
1271
1226
|
id: "salesforce";
|
|
1272
1227
|
name: string;
|
|
1273
|
-
callbackPath: string;
|
|
1274
1228
|
createAuthorizationURL({
|
|
1275
1229
|
state,
|
|
1276
1230
|
scopes,
|
|
@@ -1284,11 +1238,9 @@ declare const socialProviders: {
|
|
|
1284
1238
|
redirectURI: string;
|
|
1285
1239
|
display?: string | undefined;
|
|
1286
1240
|
loginHint?: string | undefined;
|
|
1241
|
+
idTokenNonce?: string | undefined;
|
|
1287
1242
|
additionalParams?: Record<string, string> | undefined;
|
|
1288
|
-
}): Promise<
|
|
1289
|
-
url: URL;
|
|
1290
|
-
requestedScopes: string[];
|
|
1291
|
-
}>;
|
|
1243
|
+
}): Promise<URL>;
|
|
1292
1244
|
validateAuthorizationCode: ({
|
|
1293
1245
|
code,
|
|
1294
1246
|
codeVerifier,
|
|
@@ -1301,6 +1253,7 @@ declare const socialProviders: {
|
|
|
1301
1253
|
}) => Promise<OAuth2Tokens>;
|
|
1302
1254
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
1303
1255
|
getUserInfo(token: OAuth2Tokens & {
|
|
1256
|
+
expectedIdTokenNonce?: string | undefined;
|
|
1304
1257
|
user?: {
|
|
1305
1258
|
name?: {
|
|
1306
1259
|
firstName?: string;
|
|
@@ -1324,7 +1277,6 @@ declare const socialProviders: {
|
|
|
1324
1277
|
vk: (options: VkOption) => {
|
|
1325
1278
|
id: "vk";
|
|
1326
1279
|
name: string;
|
|
1327
|
-
callbackPath: string;
|
|
1328
1280
|
createAuthorizationURL({
|
|
1329
1281
|
state,
|
|
1330
1282
|
scopes,
|
|
@@ -1338,11 +1290,9 @@ declare const socialProviders: {
|
|
|
1338
1290
|
redirectURI: string;
|
|
1339
1291
|
display?: string | undefined;
|
|
1340
1292
|
loginHint?: string | undefined;
|
|
1293
|
+
idTokenNonce?: string | undefined;
|
|
1341
1294
|
additionalParams?: Record<string, string> | undefined;
|
|
1342
|
-
}): Promise<
|
|
1343
|
-
url: URL;
|
|
1344
|
-
requestedScopes: string[];
|
|
1345
|
-
}>;
|
|
1295
|
+
}): Promise<URL>;
|
|
1346
1296
|
validateAuthorizationCode: ({
|
|
1347
1297
|
code,
|
|
1348
1298
|
codeVerifier,
|
|
@@ -1356,6 +1306,7 @@ declare const socialProviders: {
|
|
|
1356
1306
|
}) => Promise<OAuth2Tokens>;
|
|
1357
1307
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
1358
1308
|
getUserInfo(data: OAuth2Tokens & {
|
|
1309
|
+
expectedIdTokenNonce?: string | undefined;
|
|
1359
1310
|
user?: {
|
|
1360
1311
|
name?: {
|
|
1361
1312
|
firstName?: string;
|
|
@@ -1379,10 +1330,8 @@ declare const socialProviders: {
|
|
|
1379
1330
|
zoom: (userOptions: ZoomOptions) => {
|
|
1380
1331
|
id: "zoom";
|
|
1381
1332
|
name: string;
|
|
1382
|
-
callbackPath: string;
|
|
1383
1333
|
createAuthorizationURL: ({
|
|
1384
1334
|
state,
|
|
1385
|
-
scopes,
|
|
1386
1335
|
redirectURI,
|
|
1387
1336
|
codeVerifier,
|
|
1388
1337
|
additionalParams
|
|
@@ -1393,11 +1342,9 @@ declare const socialProviders: {
|
|
|
1393
1342
|
redirectURI: string;
|
|
1394
1343
|
display?: string | undefined;
|
|
1395
1344
|
loginHint?: string | undefined;
|
|
1345
|
+
idTokenNonce?: string | undefined;
|
|
1396
1346
|
additionalParams?: Record<string, string> | undefined;
|
|
1397
|
-
}) => Promise<
|
|
1398
|
-
url: URL;
|
|
1399
|
-
requestedScopes: string[];
|
|
1400
|
-
}>;
|
|
1347
|
+
}) => Promise<URL>;
|
|
1401
1348
|
validateAuthorizationCode: ({
|
|
1402
1349
|
code,
|
|
1403
1350
|
redirectURI,
|
|
@@ -1410,6 +1357,7 @@ declare const socialProviders: {
|
|
|
1410
1357
|
}) => Promise<OAuth2Tokens>;
|
|
1411
1358
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
1412
1359
|
getUserInfo(token: OAuth2Tokens & {
|
|
1360
|
+
expectedIdTokenNonce?: string | undefined;
|
|
1413
1361
|
user?: {
|
|
1414
1362
|
name?: {
|
|
1415
1363
|
firstName?: string;
|
|
@@ -1432,7 +1380,6 @@ declare const socialProviders: {
|
|
|
1432
1380
|
notion: (options: NotionOptions) => {
|
|
1433
1381
|
id: "notion";
|
|
1434
1382
|
name: string;
|
|
1435
|
-
callbackPath: string;
|
|
1436
1383
|
createAuthorizationURL({
|
|
1437
1384
|
state,
|
|
1438
1385
|
scopes,
|
|
@@ -1446,11 +1393,9 @@ declare const socialProviders: {
|
|
|
1446
1393
|
redirectURI: string;
|
|
1447
1394
|
display?: string | undefined;
|
|
1448
1395
|
loginHint?: string | undefined;
|
|
1396
|
+
idTokenNonce?: string | undefined;
|
|
1449
1397
|
additionalParams?: Record<string, string> | undefined;
|
|
1450
|
-
}): Promise<
|
|
1451
|
-
url: URL;
|
|
1452
|
-
requestedScopes: string[];
|
|
1453
|
-
}>;
|
|
1398
|
+
}): Promise<URL>;
|
|
1454
1399
|
validateAuthorizationCode: ({
|
|
1455
1400
|
code,
|
|
1456
1401
|
redirectURI
|
|
@@ -1462,6 +1407,7 @@ declare const socialProviders: {
|
|
|
1462
1407
|
}) => Promise<OAuth2Tokens>;
|
|
1463
1408
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
1464
1409
|
getUserInfo(token: OAuth2Tokens & {
|
|
1410
|
+
expectedIdTokenNonce?: string | undefined;
|
|
1465
1411
|
user?: {
|
|
1466
1412
|
name?: {
|
|
1467
1413
|
firstName?: string;
|
|
@@ -1485,7 +1431,6 @@ declare const socialProviders: {
|
|
|
1485
1431
|
kakao: (options: KakaoOptions) => {
|
|
1486
1432
|
id: "kakao";
|
|
1487
1433
|
name: string;
|
|
1488
|
-
callbackPath: string;
|
|
1489
1434
|
createAuthorizationURL({
|
|
1490
1435
|
state,
|
|
1491
1436
|
scopes,
|
|
@@ -1498,11 +1443,9 @@ declare const socialProviders: {
|
|
|
1498
1443
|
redirectURI: string;
|
|
1499
1444
|
display?: string | undefined;
|
|
1500
1445
|
loginHint?: string | undefined;
|
|
1446
|
+
idTokenNonce?: string | undefined;
|
|
1501
1447
|
additionalParams?: Record<string, string> | undefined;
|
|
1502
|
-
}): Promise<
|
|
1503
|
-
url: URL;
|
|
1504
|
-
requestedScopes: string[];
|
|
1505
|
-
}>;
|
|
1448
|
+
}): Promise<URL>;
|
|
1506
1449
|
validateAuthorizationCode: ({
|
|
1507
1450
|
code,
|
|
1508
1451
|
redirectURI
|
|
@@ -1514,6 +1457,7 @@ declare const socialProviders: {
|
|
|
1514
1457
|
}) => Promise<OAuth2Tokens>;
|
|
1515
1458
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
1516
1459
|
getUserInfo(token: OAuth2Tokens & {
|
|
1460
|
+
expectedIdTokenNonce?: string | undefined;
|
|
1517
1461
|
user?: {
|
|
1518
1462
|
name?: {
|
|
1519
1463
|
firstName?: string;
|
|
@@ -1558,7 +1502,6 @@ declare const socialProviders: {
|
|
|
1558
1502
|
naver: (options: NaverOptions) => {
|
|
1559
1503
|
id: "naver";
|
|
1560
1504
|
name: string;
|
|
1561
|
-
callbackPath: string;
|
|
1562
1505
|
createAuthorizationURL({
|
|
1563
1506
|
state,
|
|
1564
1507
|
scopes,
|
|
@@ -1571,11 +1514,9 @@ declare const socialProviders: {
|
|
|
1571
1514
|
redirectURI: string;
|
|
1572
1515
|
display?: string | undefined;
|
|
1573
1516
|
loginHint?: string | undefined;
|
|
1517
|
+
idTokenNonce?: string | undefined;
|
|
1574
1518
|
additionalParams?: Record<string, string> | undefined;
|
|
1575
|
-
}): Promise<
|
|
1576
|
-
url: URL;
|
|
1577
|
-
requestedScopes: string[];
|
|
1578
|
-
}>;
|
|
1519
|
+
}): Promise<URL>;
|
|
1579
1520
|
validateAuthorizationCode: ({
|
|
1580
1521
|
code,
|
|
1581
1522
|
redirectURI
|
|
@@ -1587,6 +1528,7 @@ declare const socialProviders: {
|
|
|
1587
1528
|
}) => Promise<OAuth2Tokens>;
|
|
1588
1529
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
1589
1530
|
getUserInfo(token: OAuth2Tokens & {
|
|
1531
|
+
expectedIdTokenNonce?: string | undefined;
|
|
1590
1532
|
user?: {
|
|
1591
1533
|
name?: {
|
|
1592
1534
|
firstName?: string;
|
|
@@ -1631,7 +1573,6 @@ declare const socialProviders: {
|
|
|
1631
1573
|
line: (options: LineOptions) => {
|
|
1632
1574
|
id: "line";
|
|
1633
1575
|
name: string;
|
|
1634
|
-
callbackPath: string;
|
|
1635
1576
|
createAuthorizationURL({
|
|
1636
1577
|
state,
|
|
1637
1578
|
scopes,
|
|
@@ -1646,11 +1587,9 @@ declare const socialProviders: {
|
|
|
1646
1587
|
redirectURI: string;
|
|
1647
1588
|
display?: string | undefined;
|
|
1648
1589
|
loginHint?: string | undefined;
|
|
1590
|
+
idTokenNonce?: string | undefined;
|
|
1649
1591
|
additionalParams?: Record<string, string> | undefined;
|
|
1650
|
-
}): Promise<
|
|
1651
|
-
url: URL;
|
|
1652
|
-
requestedScopes: string[];
|
|
1653
|
-
}>;
|
|
1592
|
+
}): Promise<URL>;
|
|
1654
1593
|
validateAuthorizationCode: ({
|
|
1655
1594
|
code,
|
|
1656
1595
|
codeVerifier,
|
|
@@ -1666,6 +1605,7 @@ declare const socialProviders: {
|
|
|
1666
1605
|
verify: (token: string, nonce: string | undefined) => Promise<boolean>;
|
|
1667
1606
|
};
|
|
1668
1607
|
getUserInfo(token: OAuth2Tokens & {
|
|
1608
|
+
expectedIdTokenNonce?: string | undefined;
|
|
1669
1609
|
user?: {
|
|
1670
1610
|
name?: {
|
|
1671
1611
|
firstName?: string;
|
|
@@ -1710,7 +1650,6 @@ declare const socialProviders: {
|
|
|
1710
1650
|
paybin: (options: PaybinOptions) => {
|
|
1711
1651
|
id: "paybin";
|
|
1712
1652
|
name: string;
|
|
1713
|
-
callbackPath: string;
|
|
1714
1653
|
createAuthorizationURL({
|
|
1715
1654
|
state,
|
|
1716
1655
|
scopes,
|
|
@@ -1725,11 +1664,9 @@ declare const socialProviders: {
|
|
|
1725
1664
|
redirectURI: string;
|
|
1726
1665
|
display?: string | undefined;
|
|
1727
1666
|
loginHint?: string | undefined;
|
|
1667
|
+
idTokenNonce?: string | undefined;
|
|
1728
1668
|
additionalParams?: Record<string, string> | undefined;
|
|
1729
|
-
}): Promise<
|
|
1730
|
-
url: URL;
|
|
1731
|
-
requestedScopes: string[];
|
|
1732
|
-
}>;
|
|
1669
|
+
}): Promise<URL>;
|
|
1733
1670
|
validateAuthorizationCode: ({
|
|
1734
1671
|
code,
|
|
1735
1672
|
codeVerifier,
|
|
@@ -1742,6 +1679,7 @@ declare const socialProviders: {
|
|
|
1742
1679
|
}) => Promise<OAuth2Tokens>;
|
|
1743
1680
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
1744
1681
|
getUserInfo(token: OAuth2Tokens & {
|
|
1682
|
+
expectedIdTokenNonce?: string | undefined;
|
|
1745
1683
|
user?: {
|
|
1746
1684
|
name?: {
|
|
1747
1685
|
firstName?: string;
|
|
@@ -1765,7 +1703,6 @@ declare const socialProviders: {
|
|
|
1765
1703
|
paypal: (options: PayPalOptions) => {
|
|
1766
1704
|
id: "paypal";
|
|
1767
1705
|
name: string;
|
|
1768
|
-
callbackPath: string;
|
|
1769
1706
|
createAuthorizationURL({
|
|
1770
1707
|
state,
|
|
1771
1708
|
codeVerifier,
|
|
@@ -1778,11 +1715,9 @@ declare const socialProviders: {
|
|
|
1778
1715
|
redirectURI: string;
|
|
1779
1716
|
display?: string | undefined;
|
|
1780
1717
|
loginHint?: string | undefined;
|
|
1718
|
+
idTokenNonce?: string | undefined;
|
|
1781
1719
|
additionalParams?: Record<string, string> | undefined;
|
|
1782
|
-
}): Promise<
|
|
1783
|
-
url: URL;
|
|
1784
|
-
requestedScopes: string[];
|
|
1785
|
-
}>;
|
|
1720
|
+
}): Promise<URL>;
|
|
1786
1721
|
validateAuthorizationCode: ({
|
|
1787
1722
|
code,
|
|
1788
1723
|
redirectURI
|
|
@@ -1803,6 +1738,7 @@ declare const socialProviders: {
|
|
|
1803
1738
|
accessTokenExpiresAt: Date | undefined;
|
|
1804
1739
|
}>);
|
|
1805
1740
|
getUserInfo(token: OAuth2Tokens & {
|
|
1741
|
+
expectedIdTokenNonce?: string | undefined;
|
|
1806
1742
|
user?: {
|
|
1807
1743
|
name?: {
|
|
1808
1744
|
firstName?: string;
|
|
@@ -1847,7 +1783,6 @@ declare const socialProviders: {
|
|
|
1847
1783
|
polar: (options: PolarOptions) => {
|
|
1848
1784
|
id: "polar";
|
|
1849
1785
|
name: string;
|
|
1850
|
-
callbackPath: string;
|
|
1851
1786
|
createAuthorizationURL({
|
|
1852
1787
|
state,
|
|
1853
1788
|
scopes,
|
|
@@ -1861,11 +1796,9 @@ declare const socialProviders: {
|
|
|
1861
1796
|
redirectURI: string;
|
|
1862
1797
|
display?: string | undefined;
|
|
1863
1798
|
loginHint?: string | undefined;
|
|
1799
|
+
idTokenNonce?: string | undefined;
|
|
1864
1800
|
additionalParams?: Record<string, string> | undefined;
|
|
1865
|
-
}): Promise<
|
|
1866
|
-
url: URL;
|
|
1867
|
-
requestedScopes: string[];
|
|
1868
|
-
}>;
|
|
1801
|
+
}): Promise<URL>;
|
|
1869
1802
|
validateAuthorizationCode: ({
|
|
1870
1803
|
code,
|
|
1871
1804
|
codeVerifier,
|
|
@@ -1878,6 +1811,7 @@ declare const socialProviders: {
|
|
|
1878
1811
|
}) => Promise<OAuth2Tokens>;
|
|
1879
1812
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
1880
1813
|
getUserInfo(token: OAuth2Tokens & {
|
|
1814
|
+
expectedIdTokenNonce?: string | undefined;
|
|
1881
1815
|
user?: {
|
|
1882
1816
|
name?: {
|
|
1883
1817
|
firstName?: string;
|
|
@@ -1901,7 +1835,6 @@ declare const socialProviders: {
|
|
|
1901
1835
|
railway: (options: RailwayOptions) => {
|
|
1902
1836
|
id: "railway";
|
|
1903
1837
|
name: string;
|
|
1904
|
-
callbackPath: string;
|
|
1905
1838
|
createAuthorizationURL({
|
|
1906
1839
|
state,
|
|
1907
1840
|
scopes,
|
|
@@ -1915,11 +1848,9 @@ declare const socialProviders: {
|
|
|
1915
1848
|
redirectURI: string;
|
|
1916
1849
|
display?: string | undefined;
|
|
1917
1850
|
loginHint?: string | undefined;
|
|
1851
|
+
idTokenNonce?: string | undefined;
|
|
1918
1852
|
additionalParams?: Record<string, string> | undefined;
|
|
1919
|
-
}): Promise<
|
|
1920
|
-
url: URL;
|
|
1921
|
-
requestedScopes: string[];
|
|
1922
|
-
}>;
|
|
1853
|
+
}): Promise<URL>;
|
|
1923
1854
|
validateAuthorizationCode: ({
|
|
1924
1855
|
code,
|
|
1925
1856
|
codeVerifier,
|
|
@@ -1932,6 +1863,7 @@ declare const socialProviders: {
|
|
|
1932
1863
|
}) => Promise<OAuth2Tokens>;
|
|
1933
1864
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
1934
1865
|
getUserInfo(token: OAuth2Tokens & {
|
|
1866
|
+
expectedIdTokenNonce?: string | undefined;
|
|
1935
1867
|
user?: {
|
|
1936
1868
|
name?: {
|
|
1937
1869
|
firstName?: string;
|
|
@@ -1955,7 +1887,6 @@ declare const socialProviders: {
|
|
|
1955
1887
|
vercel: (options: VercelOptions) => {
|
|
1956
1888
|
id: "vercel";
|
|
1957
1889
|
name: string;
|
|
1958
|
-
callbackPath: string;
|
|
1959
1890
|
createAuthorizationURL({
|
|
1960
1891
|
state,
|
|
1961
1892
|
scopes,
|
|
@@ -1969,11 +1900,9 @@ declare const socialProviders: {
|
|
|
1969
1900
|
redirectURI: string;
|
|
1970
1901
|
display?: string | undefined;
|
|
1971
1902
|
loginHint?: string | undefined;
|
|
1903
|
+
idTokenNonce?: string | undefined;
|
|
1972
1904
|
additionalParams?: Record<string, string> | undefined;
|
|
1973
|
-
}): Promise<
|
|
1974
|
-
url: URL;
|
|
1975
|
-
requestedScopes: string[];
|
|
1976
|
-
}>;
|
|
1905
|
+
}): Promise<URL>;
|
|
1977
1906
|
validateAuthorizationCode: ({
|
|
1978
1907
|
code,
|
|
1979
1908
|
codeVerifier,
|
|
@@ -1985,6 +1914,7 @@ declare const socialProviders: {
|
|
|
1985
1914
|
deviceId?: string | undefined;
|
|
1986
1915
|
}) => Promise<OAuth2Tokens>;
|
|
1987
1916
|
getUserInfo(token: OAuth2Tokens & {
|
|
1917
|
+
expectedIdTokenNonce?: string | undefined;
|
|
1988
1918
|
user?: {
|
|
1989
1919
|
name?: {
|
|
1990
1920
|
firstName?: string;
|
|
@@ -2008,7 +1938,6 @@ declare const socialProviders: {
|
|
|
2008
1938
|
wechat: (options: WeChatOptions) => {
|
|
2009
1939
|
id: "wechat";
|
|
2010
1940
|
name: string;
|
|
2011
|
-
callbackPath: string;
|
|
2012
1941
|
createAuthorizationURL({
|
|
2013
1942
|
state,
|
|
2014
1943
|
scopes,
|
|
@@ -2021,11 +1950,9 @@ declare const socialProviders: {
|
|
|
2021
1950
|
redirectURI: string;
|
|
2022
1951
|
display?: string | undefined;
|
|
2023
1952
|
loginHint?: string | undefined;
|
|
1953
|
+
idTokenNonce?: string | undefined;
|
|
2024
1954
|
additionalParams?: Record<string, string> | undefined;
|
|
2025
|
-
}):
|
|
2026
|
-
url: URL;
|
|
2027
|
-
requestedScopes: string[];
|
|
2028
|
-
};
|
|
1955
|
+
}): URL;
|
|
2029
1956
|
validateAuthorizationCode: ({
|
|
2030
1957
|
code
|
|
2031
1958
|
}: {
|
|
@@ -2050,6 +1977,7 @@ declare const socialProviders: {
|
|
|
2050
1977
|
scopes: string[];
|
|
2051
1978
|
}>);
|
|
2052
1979
|
getUserInfo(token: OAuth2Tokens & {
|
|
1980
|
+
expectedIdTokenNonce?: string | undefined;
|
|
2053
1981
|
user?: {
|
|
2054
1982
|
name?: {
|
|
2055
1983
|
firstName?: string;
|