@better-auth/core 1.7.0-rc.5 → 1.7.0
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 +28 -28
- package/dist/async_hooks/index.d.mts +1 -0
- package/dist/async_hooks/pure.index.d.mts +1 -0
- package/dist/context/endpoint-context.d.mts +1 -1
- package/dist/context/endpoint-context.mjs +4 -4
- package/dist/context/global.d.mts +1 -0
- package/dist/context/global.mjs +1 -1
- package/dist/context/request-state.d.mts +1 -0
- package/dist/context/request-state.mjs +3 -6
- package/dist/context/transaction.d.mts +3 -4
- package/dist/context/transaction.mjs +4 -4
- package/dist/db/adapter/factory.d.mts +5 -3
- package/dist/db/adapter/factory.mjs +1 -1
- package/dist/db/adapter/get-default-field-name.d.mts +9 -2
- package/dist/db/adapter/get-default-model-name.d.mts +5 -1
- package/dist/db/adapter/get-field-attributes.d.mts +11 -4
- package/dist/db/adapter/get-field-name.d.mts +9 -2
- package/dist/db/adapter/get-id-field.d.mts +12 -4
- package/dist/db/adapter/get-model-name.d.mts +5 -1
- package/dist/db/adapter/index.d.mts +32 -7
- package/dist/db/adapter/types.d.mts +17 -5
- package/dist/db/adapter/utils.d.mts +1 -0
- package/dist/db/database-index.d.mts +12 -2
- package/dist/db/get-tables.d.mts +0 -1
- package/dist/db/plugin.d.mts +3 -3
- package/dist/db/schema/account.d.mts +1 -1
- package/dist/db/schema/rate-limit.d.mts +1 -1
- package/dist/db/schema/session.d.mts +1 -1
- package/dist/db/schema/shared.d.mts +1 -0
- package/dist/db/schema/user.d.mts +1 -1
- package/dist/db/schema/verification.d.mts +1 -1
- package/dist/db/type.d.mts +11 -8
- package/dist/env/logger.d.mts +25 -25
- package/dist/error/codes.d.mts +1 -0
- package/dist/error/index.d.mts +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/instrumentation/attributes.d.mts +1 -0
- package/dist/instrumentation/pure.index.d.mts +1 -0
- package/dist/instrumentation/tracer.mjs +1 -1
- package/dist/oauth2/authorization-params.d.mts +1 -0
- package/dist/oauth2/client-assertion.d.mts +13 -3
- package/dist/oauth2/client-credentials-token.d.mts +17 -3
- package/dist/oauth2/create-authorization-url.d.mts +21 -3
- package/dist/oauth2/dpop.d.mts +23 -2
- package/dist/oauth2/dpop.mjs +1 -1
- package/dist/oauth2/oauth-provider.d.mts +7 -13
- package/dist/oauth2/refresh-access-token.d.mts +19 -3
- package/dist/oauth2/refresh-access-token.mjs +1 -1
- package/dist/oauth2/reject-redirects.mjs +1 -1
- package/dist/oauth2/token-endpoint-auth.d.mts +1 -0
- package/dist/oauth2/utils.d.mts +1 -0
- package/dist/oauth2/utils.mjs +1 -1
- package/dist/oauth2/validate-authorization-code.d.mts +29 -5
- package/dist/oauth2/verify-id-token.d.mts +1 -1
- package/dist/oauth2/verify.d.mts +7 -5
- package/dist/oauth2/verify.mjs +2 -2
- package/dist/social-providers/apple.d.mts +18 -5
- package/dist/social-providers/atlassian.d.mts +15 -4
- package/dist/social-providers/cognito.d.mts +18 -5
- package/dist/social-providers/discord.d.mts +13 -4
- package/dist/social-providers/dropbox.d.mts +15 -4
- package/dist/social-providers/facebook.d.mts +18 -6
- package/dist/social-providers/figma.d.mts +15 -4
- package/dist/social-providers/github.d.mts +16 -4
- package/dist/social-providers/gitlab.d.mts +16 -4
- package/dist/social-providers/google.d.mts +25 -6
- package/dist/social-providers/huggingface.d.mts +15 -4
- package/dist/social-providers/index.d.mts +504 -113
- package/dist/social-providers/kakao.d.mts +13 -4
- package/dist/social-providers/kick.d.mts +15 -4
- package/dist/social-providers/line.d.mts +16 -4
- package/dist/social-providers/linear.d.mts +14 -4
- package/dist/social-providers/linkedin.d.mts +14 -4
- package/dist/social-providers/microsoft-entra-id.d.mts +14 -5
- package/dist/social-providers/microsoft-entra-id.mjs +1 -2
- package/dist/social-providers/naver.d.mts +22 -23
- package/dist/social-providers/notion.d.mts +14 -4
- package/dist/social-providers/paybin.d.mts +16 -4
- package/dist/social-providers/paypal.d.mts +13 -4
- package/dist/social-providers/polar.d.mts +15 -4
- package/dist/social-providers/railway.d.mts +15 -4
- package/dist/social-providers/reddit.d.mts +13 -4
- package/dist/social-providers/roblox.d.mts +13 -4
- package/dist/social-providers/salesforce.d.mts +15 -4
- package/dist/social-providers/slack.d.mts +13 -4
- package/dist/social-providers/spotify.d.mts +15 -4
- package/dist/social-providers/tiktok.d.mts +14 -6
- package/dist/social-providers/twitch.d.mts +13 -4
- package/dist/social-providers/twitter.d.mts +19 -26
- package/dist/social-providers/vercel.d.mts +15 -4
- package/dist/social-providers/vk.d.mts +16 -4
- package/dist/social-providers/wechat.d.mts +12 -4
- package/dist/social-providers/zoom.d.mts +18 -6
- package/dist/types/context.d.mts +2 -2
- package/dist/types/cookie.d.mts +1 -1
- package/dist/types/helper.d.mts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/init-options.d.mts +18 -26
- package/dist/types/plugin-client.d.mts +3 -1
- package/dist/types/plugin.d.mts +2 -2
- package/dist/utils/async.d.mts +1 -0
- package/dist/utils/db.d.mts +0 -1
- package/dist/utils/deprecate.d.mts +1 -0
- package/dist/utils/email.d.mts +4 -1
- package/dist/utils/error-codes.d.mts +2 -2
- package/dist/utils/host.d.mts +1 -27
- package/dist/utils/host.mjs +1 -1
- package/dist/utils/ip.d.mts +0 -1
- package/dist/utils/ip.mjs +1 -1
- package/dist/utils/is-api-error.d.mts +1 -0
- package/dist/utils/redirect-uri.d.mts +1 -0
- package/package.json +2 -2
- package/src/context/endpoint-context.ts +6 -4
- package/src/context/request-state.ts +5 -23
- package/src/context/transaction.ts +6 -4
- package/src/db/type.ts +2 -1
- package/src/types/init-options.ts +6 -4
|
@@ -34,18 +34,26 @@ import { RailwayOptions, RailwayProfile, railway } from "./railway.mjs";
|
|
|
34
34
|
import { VercelOptions, VercelProfile, vercel } from "./vercel.mjs";
|
|
35
35
|
import { WeChatOptions, WeChatProfile, wechat } from "./wechat.mjs";
|
|
36
36
|
import { AwaitableFunction } from "../types/helper.mjs";
|
|
37
|
-
import "../types/index.mjs";
|
|
38
37
|
import { OAuth2Tokens, OAuth2UserInfo, OAuthAccountKeyContext } from "../oauth2/oauth-provider.mjs";
|
|
39
|
-
import "../oauth2/index.mjs";
|
|
40
38
|
import * as z from "zod";
|
|
39
|
+
import * as _$jose from "jose";
|
|
40
|
+
|
|
41
41
|
//#region src/social-providers/index.d.ts
|
|
42
42
|
declare const socialProviders: {
|
|
43
43
|
apple: (options: AppleOptions) => {
|
|
44
44
|
id: "apple";
|
|
45
45
|
name: string;
|
|
46
|
-
accountSubject: ({
|
|
46
|
+
accountSubject: ({
|
|
47
|
+
profile
|
|
48
|
+
}: OAuthAccountKeyContext<AppleProfile>) => string;
|
|
47
49
|
accountIssuer: string;
|
|
48
|
-
createAuthorizationURL({
|
|
50
|
+
createAuthorizationURL({
|
|
51
|
+
state,
|
|
52
|
+
scopes,
|
|
53
|
+
redirectURI,
|
|
54
|
+
additionalParams,
|
|
55
|
+
codeVerifier
|
|
56
|
+
}: {
|
|
49
57
|
state: string;
|
|
50
58
|
codeVerifier: string;
|
|
51
59
|
scopes?: string[] | undefined;
|
|
@@ -55,14 +63,18 @@ declare const socialProviders: {
|
|
|
55
63
|
idTokenNonce?: string | undefined;
|
|
56
64
|
additionalParams?: Record<string, string> | undefined;
|
|
57
65
|
}): Promise<URL>;
|
|
58
|
-
validateAuthorizationCode: ({
|
|
66
|
+
validateAuthorizationCode: ({
|
|
67
|
+
code,
|
|
68
|
+
codeVerifier,
|
|
69
|
+
redirectURI
|
|
70
|
+
}: {
|
|
59
71
|
code: string;
|
|
60
72
|
redirectURI: string;
|
|
61
73
|
codeVerifier?: string | undefined;
|
|
62
74
|
deviceId?: string | undefined;
|
|
63
75
|
}) => Promise<OAuth2Tokens>;
|
|
64
76
|
idToken: {
|
|
65
|
-
jwks: (header:
|
|
77
|
+
jwks: (header: _$jose.JWTHeaderParameters) => Promise<Uint8Array<ArrayBufferLike> | CryptoKey>;
|
|
66
78
|
issuer: string;
|
|
67
79
|
audience: string | string[];
|
|
68
80
|
maxTokenAge: string;
|
|
@@ -87,8 +99,16 @@ declare const socialProviders: {
|
|
|
87
99
|
atlassian: (options: AtlassianOptions) => {
|
|
88
100
|
id: "atlassian";
|
|
89
101
|
name: string;
|
|
90
|
-
accountSubject: ({
|
|
91
|
-
|
|
102
|
+
accountSubject: ({
|
|
103
|
+
profile
|
|
104
|
+
}: OAuthAccountKeyContext<AtlassianProfile>) => string;
|
|
105
|
+
createAuthorizationURL({
|
|
106
|
+
state,
|
|
107
|
+
scopes,
|
|
108
|
+
codeVerifier,
|
|
109
|
+
redirectURI,
|
|
110
|
+
additionalParams
|
|
111
|
+
}: {
|
|
92
112
|
state: string;
|
|
93
113
|
codeVerifier: string;
|
|
94
114
|
scopes?: string[] | undefined;
|
|
@@ -98,7 +118,11 @@ declare const socialProviders: {
|
|
|
98
118
|
idTokenNonce?: string | undefined;
|
|
99
119
|
additionalParams?: Record<string, string> | undefined;
|
|
100
120
|
}): Promise<URL>;
|
|
101
|
-
validateAuthorizationCode: ({
|
|
121
|
+
validateAuthorizationCode: ({
|
|
122
|
+
code,
|
|
123
|
+
codeVerifier,
|
|
124
|
+
redirectURI
|
|
125
|
+
}: {
|
|
102
126
|
code: string;
|
|
103
127
|
redirectURI: string;
|
|
104
128
|
codeVerifier?: string | undefined;
|
|
@@ -137,9 +161,17 @@ declare const socialProviders: {
|
|
|
137
161
|
cognito: (options: CognitoOptions) => {
|
|
138
162
|
id: "cognito";
|
|
139
163
|
name: string;
|
|
140
|
-
accountSubject: ({
|
|
164
|
+
accountSubject: ({
|
|
165
|
+
profile
|
|
166
|
+
}: OAuthAccountKeyContext<CognitoProfile>) => string;
|
|
141
167
|
accountIssuer: string;
|
|
142
|
-
createAuthorizationURL({
|
|
168
|
+
createAuthorizationURL({
|
|
169
|
+
state,
|
|
170
|
+
scopes,
|
|
171
|
+
codeVerifier,
|
|
172
|
+
redirectURI,
|
|
173
|
+
additionalParams
|
|
174
|
+
}: {
|
|
143
175
|
state: string;
|
|
144
176
|
codeVerifier: string;
|
|
145
177
|
scopes?: string[] | undefined;
|
|
@@ -149,7 +181,11 @@ declare const socialProviders: {
|
|
|
149
181
|
idTokenNonce?: string | undefined;
|
|
150
182
|
additionalParams?: Record<string, string> | undefined;
|
|
151
183
|
}): Promise<URL>;
|
|
152
|
-
validateAuthorizationCode: ({
|
|
184
|
+
validateAuthorizationCode: ({
|
|
185
|
+
code,
|
|
186
|
+
codeVerifier,
|
|
187
|
+
redirectURI
|
|
188
|
+
}: {
|
|
153
189
|
code: string;
|
|
154
190
|
redirectURI: string;
|
|
155
191
|
codeVerifier?: string | undefined;
|
|
@@ -157,7 +193,7 @@ declare const socialProviders: {
|
|
|
157
193
|
}) => Promise<OAuth2Tokens>;
|
|
158
194
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
159
195
|
idToken: {
|
|
160
|
-
jwks: (header:
|
|
196
|
+
jwks: (header: _$jose.JWTHeaderParameters) => Promise<Uint8Array<ArrayBufferLike> | CryptoKey>;
|
|
161
197
|
issuer: string;
|
|
162
198
|
audience: string | string[];
|
|
163
199
|
maxTokenAge: string;
|
|
@@ -207,8 +243,15 @@ declare const socialProviders: {
|
|
|
207
243
|
discord: (options: DiscordOptions) => {
|
|
208
244
|
id: "discord";
|
|
209
245
|
name: string;
|
|
210
|
-
accountSubject: ({
|
|
211
|
-
|
|
246
|
+
accountSubject: ({
|
|
247
|
+
profile
|
|
248
|
+
}: OAuthAccountKeyContext<DiscordProfile>) => string;
|
|
249
|
+
createAuthorizationURL({
|
|
250
|
+
state,
|
|
251
|
+
scopes,
|
|
252
|
+
redirectURI,
|
|
253
|
+
additionalParams
|
|
254
|
+
}: {
|
|
212
255
|
state: string;
|
|
213
256
|
codeVerifier: string;
|
|
214
257
|
scopes?: string[] | undefined;
|
|
@@ -218,7 +261,10 @@ declare const socialProviders: {
|
|
|
218
261
|
idTokenNonce?: string | undefined;
|
|
219
262
|
additionalParams?: Record<string, string> | undefined;
|
|
220
263
|
}): Promise<URL>;
|
|
221
|
-
validateAuthorizationCode: ({
|
|
264
|
+
validateAuthorizationCode: ({
|
|
265
|
+
code,
|
|
266
|
+
redirectURI
|
|
267
|
+
}: {
|
|
222
268
|
code: string;
|
|
223
269
|
redirectURI: string;
|
|
224
270
|
codeVerifier?: string | undefined;
|
|
@@ -243,9 +289,17 @@ declare const socialProviders: {
|
|
|
243
289
|
facebook: (options: FacebookOptions) => {
|
|
244
290
|
id: "facebook";
|
|
245
291
|
name: string;
|
|
246
|
-
accountSubject: ({
|
|
292
|
+
accountSubject: ({
|
|
293
|
+
profile
|
|
294
|
+
}: OAuthAccountKeyContext<FacebookProfile>) => string;
|
|
247
295
|
accountIssuer: string;
|
|
248
|
-
createAuthorizationURL({
|
|
296
|
+
createAuthorizationURL({
|
|
297
|
+
state,
|
|
298
|
+
scopes,
|
|
299
|
+
redirectURI,
|
|
300
|
+
loginHint,
|
|
301
|
+
additionalParams
|
|
302
|
+
}: {
|
|
249
303
|
state: string;
|
|
250
304
|
codeVerifier: string;
|
|
251
305
|
scopes?: string[] | undefined;
|
|
@@ -255,7 +309,10 @@ declare const socialProviders: {
|
|
|
255
309
|
idTokenNonce?: string | undefined;
|
|
256
310
|
additionalParams?: Record<string, string> | undefined;
|
|
257
311
|
}): Promise<URL>;
|
|
258
|
-
validateAuthorizationCode: ({
|
|
312
|
+
validateAuthorizationCode: ({
|
|
313
|
+
code,
|
|
314
|
+
redirectURI
|
|
315
|
+
}: {
|
|
259
316
|
code: string;
|
|
260
317
|
redirectURI: string;
|
|
261
318
|
codeVerifier?: string | undefined;
|
|
@@ -263,12 +320,12 @@ declare const socialProviders: {
|
|
|
263
320
|
}) => Promise<OAuth2Tokens>;
|
|
264
321
|
idToken: {
|
|
265
322
|
jwks: {
|
|
266
|
-
(protectedHeader?:
|
|
323
|
+
(protectedHeader?: _$jose.JWSHeaderParameters, token?: _$jose.FlattenedJWSInput): Promise<_$jose.CryptoKey>;
|
|
267
324
|
coolingDown: boolean;
|
|
268
325
|
fresh: boolean;
|
|
269
326
|
reloading: boolean;
|
|
270
327
|
reload: () => Promise<void>;
|
|
271
|
-
jwks: () =>
|
|
328
|
+
jwks: () => _$jose.JSONWebKeySet | undefined;
|
|
272
329
|
};
|
|
273
330
|
issuer: string;
|
|
274
331
|
audience: string | string[];
|
|
@@ -294,8 +351,16 @@ declare const socialProviders: {
|
|
|
294
351
|
figma: (options: FigmaOptions) => {
|
|
295
352
|
id: "figma";
|
|
296
353
|
name: string;
|
|
297
|
-
accountSubject: ({
|
|
298
|
-
|
|
354
|
+
accountSubject: ({
|
|
355
|
+
profile
|
|
356
|
+
}: OAuthAccountKeyContext<FigmaProfile>) => string;
|
|
357
|
+
createAuthorizationURL({
|
|
358
|
+
state,
|
|
359
|
+
scopes,
|
|
360
|
+
codeVerifier,
|
|
361
|
+
redirectURI,
|
|
362
|
+
additionalParams
|
|
363
|
+
}: {
|
|
299
364
|
state: string;
|
|
300
365
|
codeVerifier: string;
|
|
301
366
|
scopes?: string[] | undefined;
|
|
@@ -305,7 +370,11 @@ declare const socialProviders: {
|
|
|
305
370
|
idTokenNonce?: string | undefined;
|
|
306
371
|
additionalParams?: Record<string, string> | undefined;
|
|
307
372
|
}): Promise<URL>;
|
|
308
|
-
validateAuthorizationCode: ({
|
|
373
|
+
validateAuthorizationCode: ({
|
|
374
|
+
code,
|
|
375
|
+
codeVerifier,
|
|
376
|
+
redirectURI
|
|
377
|
+
}: {
|
|
309
378
|
code: string;
|
|
310
379
|
redirectURI: string;
|
|
311
380
|
codeVerifier?: string | undefined;
|
|
@@ -330,8 +399,17 @@ declare const socialProviders: {
|
|
|
330
399
|
github: (options: GithubOptions) => {
|
|
331
400
|
id: "github";
|
|
332
401
|
name: string;
|
|
333
|
-
accountSubject: ({
|
|
334
|
-
|
|
402
|
+
accountSubject: ({
|
|
403
|
+
profile
|
|
404
|
+
}: OAuthAccountKeyContext<GithubProfile>) => string;
|
|
405
|
+
createAuthorizationURL({
|
|
406
|
+
state,
|
|
407
|
+
scopes,
|
|
408
|
+
loginHint,
|
|
409
|
+
codeVerifier,
|
|
410
|
+
redirectURI,
|
|
411
|
+
additionalParams
|
|
412
|
+
}: {
|
|
335
413
|
state: string;
|
|
336
414
|
codeVerifier: string;
|
|
337
415
|
scopes?: string[] | undefined;
|
|
@@ -341,7 +419,11 @@ declare const socialProviders: {
|
|
|
341
419
|
idTokenNonce?: string | undefined;
|
|
342
420
|
additionalParams?: Record<string, string> | undefined;
|
|
343
421
|
}): Promise<URL>;
|
|
344
|
-
validateAuthorizationCode: ({
|
|
422
|
+
validateAuthorizationCode: ({
|
|
423
|
+
code,
|
|
424
|
+
codeVerifier,
|
|
425
|
+
redirectURI
|
|
426
|
+
}: {
|
|
345
427
|
code: string;
|
|
346
428
|
redirectURI: string;
|
|
347
429
|
codeVerifier?: string | undefined;
|
|
@@ -366,8 +448,12 @@ declare const socialProviders: {
|
|
|
366
448
|
microsoft: (options: MicrosoftOptions) => {
|
|
367
449
|
id: "microsoft";
|
|
368
450
|
name: string;
|
|
369
|
-
accountSubject: ({
|
|
370
|
-
|
|
451
|
+
accountSubject: ({
|
|
452
|
+
profile
|
|
453
|
+
}: OAuthAccountKeyContext<MicrosoftEntraIDProfile>) => string;
|
|
454
|
+
accountIssuer: ({
|
|
455
|
+
profile
|
|
456
|
+
}: OAuthAccountKeyContext<MicrosoftEntraIDProfile>) => string;
|
|
371
457
|
createAuthorizationURL(data: {
|
|
372
458
|
state: string;
|
|
373
459
|
codeVerifier: string;
|
|
@@ -378,14 +464,18 @@ declare const socialProviders: {
|
|
|
378
464
|
idTokenNonce?: string | undefined;
|
|
379
465
|
additionalParams?: Record<string, string> | undefined;
|
|
380
466
|
}): Promise<URL>;
|
|
381
|
-
validateAuthorizationCode({
|
|
467
|
+
validateAuthorizationCode({
|
|
468
|
+
code,
|
|
469
|
+
codeVerifier,
|
|
470
|
+
redirectURI
|
|
471
|
+
}: {
|
|
382
472
|
code: string;
|
|
383
473
|
redirectURI: string;
|
|
384
474
|
codeVerifier?: string | undefined;
|
|
385
475
|
deviceId?: string | undefined;
|
|
386
476
|
}): Promise<OAuth2Tokens>;
|
|
387
477
|
idToken: {
|
|
388
|
-
jwks: (header:
|
|
478
|
+
jwks: (header: _$jose.JWTHeaderParameters) => Promise<Uint8Array<ArrayBufferLike> | CryptoKey>;
|
|
389
479
|
audience: string | string[];
|
|
390
480
|
maxTokenAge: string;
|
|
391
481
|
issuer: string | undefined;
|
|
@@ -410,9 +500,19 @@ declare const socialProviders: {
|
|
|
410
500
|
google: (options: GoogleOptions) => {
|
|
411
501
|
id: "google";
|
|
412
502
|
name: string;
|
|
413
|
-
accountSubject: ({
|
|
503
|
+
accountSubject: ({
|
|
504
|
+
profile
|
|
505
|
+
}: OAuthAccountKeyContext<GoogleProfile>) => string;
|
|
414
506
|
accountIssuer: string;
|
|
415
|
-
createAuthorizationURL({
|
|
507
|
+
createAuthorizationURL({
|
|
508
|
+
state,
|
|
509
|
+
scopes,
|
|
510
|
+
codeVerifier,
|
|
511
|
+
redirectURI,
|
|
512
|
+
loginHint,
|
|
513
|
+
display,
|
|
514
|
+
additionalParams
|
|
515
|
+
}: {
|
|
416
516
|
state: string;
|
|
417
517
|
codeVerifier: string;
|
|
418
518
|
scopes?: string[] | undefined;
|
|
@@ -422,7 +522,11 @@ declare const socialProviders: {
|
|
|
422
522
|
idTokenNonce?: string | undefined;
|
|
423
523
|
additionalParams?: Record<string, string> | undefined;
|
|
424
524
|
}): Promise<URL>;
|
|
425
|
-
validateAuthorizationCode: ({
|
|
525
|
+
validateAuthorizationCode: ({
|
|
526
|
+
code,
|
|
527
|
+
codeVerifier,
|
|
528
|
+
redirectURI
|
|
529
|
+
}: {
|
|
426
530
|
code: string;
|
|
427
531
|
redirectURI: string;
|
|
428
532
|
codeVerifier?: string | undefined;
|
|
@@ -430,7 +534,7 @@ declare const socialProviders: {
|
|
|
430
534
|
}) => Promise<OAuth2Tokens>;
|
|
431
535
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
432
536
|
idToken: {
|
|
433
|
-
jwks: (header:
|
|
537
|
+
jwks: (header: _$jose.JWTHeaderParameters) => Promise<Uint8Array<ArrayBufferLike> | CryptoKey>;
|
|
434
538
|
issuer: string[];
|
|
435
539
|
audience: string | string[];
|
|
436
540
|
maxTokenAge: string;
|
|
@@ -454,8 +558,16 @@ declare const socialProviders: {
|
|
|
454
558
|
huggingface: (options: HuggingFaceOptions) => {
|
|
455
559
|
id: "huggingface";
|
|
456
560
|
name: string;
|
|
457
|
-
accountSubject: ({
|
|
458
|
-
|
|
561
|
+
accountSubject: ({
|
|
562
|
+
profile
|
|
563
|
+
}: OAuthAccountKeyContext<HuggingFaceProfile>) => string;
|
|
564
|
+
createAuthorizationURL({
|
|
565
|
+
state,
|
|
566
|
+
scopes,
|
|
567
|
+
codeVerifier,
|
|
568
|
+
redirectURI,
|
|
569
|
+
additionalParams
|
|
570
|
+
}: {
|
|
459
571
|
state: string;
|
|
460
572
|
codeVerifier: string;
|
|
461
573
|
scopes?: string[] | undefined;
|
|
@@ -465,7 +577,11 @@ declare const socialProviders: {
|
|
|
465
577
|
idTokenNonce?: string | undefined;
|
|
466
578
|
additionalParams?: Record<string, string> | undefined;
|
|
467
579
|
}): Promise<URL>;
|
|
468
|
-
validateAuthorizationCode: ({
|
|
580
|
+
validateAuthorizationCode: ({
|
|
581
|
+
code,
|
|
582
|
+
codeVerifier,
|
|
583
|
+
redirectURI
|
|
584
|
+
}: {
|
|
469
585
|
code: string;
|
|
470
586
|
redirectURI: string;
|
|
471
587
|
codeVerifier?: string | undefined;
|
|
@@ -490,8 +606,15 @@ declare const socialProviders: {
|
|
|
490
606
|
slack: (options: SlackOptions) => {
|
|
491
607
|
id: "slack";
|
|
492
608
|
name: string;
|
|
493
|
-
accountSubject: ({
|
|
494
|
-
|
|
609
|
+
accountSubject: ({
|
|
610
|
+
profile
|
|
611
|
+
}: OAuthAccountKeyContext<SlackProfile>) => string;
|
|
612
|
+
createAuthorizationURL({
|
|
613
|
+
state,
|
|
614
|
+
scopes,
|
|
615
|
+
redirectURI,
|
|
616
|
+
additionalParams
|
|
617
|
+
}: {
|
|
495
618
|
state: string;
|
|
496
619
|
codeVerifier: string;
|
|
497
620
|
scopes?: string[] | undefined;
|
|
@@ -501,7 +624,10 @@ declare const socialProviders: {
|
|
|
501
624
|
idTokenNonce?: string | undefined;
|
|
502
625
|
additionalParams?: Record<string, string> | undefined;
|
|
503
626
|
}): Promise<URL>;
|
|
504
|
-
validateAuthorizationCode: ({
|
|
627
|
+
validateAuthorizationCode: ({
|
|
628
|
+
code,
|
|
629
|
+
redirectURI
|
|
630
|
+
}: {
|
|
505
631
|
code: string;
|
|
506
632
|
redirectURI: string;
|
|
507
633
|
codeVerifier?: string | undefined;
|
|
@@ -526,8 +652,16 @@ declare const socialProviders: {
|
|
|
526
652
|
spotify: (options: SpotifyOptions) => {
|
|
527
653
|
id: "spotify";
|
|
528
654
|
name: string;
|
|
529
|
-
accountSubject: ({
|
|
530
|
-
|
|
655
|
+
accountSubject: ({
|
|
656
|
+
profile
|
|
657
|
+
}: OAuthAccountKeyContext<SpotifyProfile>) => string;
|
|
658
|
+
createAuthorizationURL({
|
|
659
|
+
state,
|
|
660
|
+
scopes,
|
|
661
|
+
codeVerifier,
|
|
662
|
+
redirectURI,
|
|
663
|
+
additionalParams
|
|
664
|
+
}: {
|
|
531
665
|
state: string;
|
|
532
666
|
codeVerifier: string;
|
|
533
667
|
scopes?: string[] | undefined;
|
|
@@ -537,7 +671,11 @@ declare const socialProviders: {
|
|
|
537
671
|
idTokenNonce?: string | undefined;
|
|
538
672
|
additionalParams?: Record<string, string> | undefined;
|
|
539
673
|
}): Promise<URL>;
|
|
540
|
-
validateAuthorizationCode: ({
|
|
674
|
+
validateAuthorizationCode: ({
|
|
675
|
+
code,
|
|
676
|
+
codeVerifier,
|
|
677
|
+
redirectURI
|
|
678
|
+
}: {
|
|
541
679
|
code: string;
|
|
542
680
|
redirectURI: string;
|
|
543
681
|
codeVerifier?: string | undefined;
|
|
@@ -562,8 +700,15 @@ declare const socialProviders: {
|
|
|
562
700
|
twitch: (options: TwitchOptions) => {
|
|
563
701
|
id: "twitch";
|
|
564
702
|
name: string;
|
|
565
|
-
accountSubject: ({
|
|
566
|
-
|
|
703
|
+
accountSubject: ({
|
|
704
|
+
profile
|
|
705
|
+
}: OAuthAccountKeyContext<TwitchProfile>) => string;
|
|
706
|
+
createAuthorizationURL({
|
|
707
|
+
state,
|
|
708
|
+
scopes,
|
|
709
|
+
redirectURI,
|
|
710
|
+
additionalParams
|
|
711
|
+
}: {
|
|
567
712
|
state: string;
|
|
568
713
|
codeVerifier: string;
|
|
569
714
|
scopes?: string[] | undefined;
|
|
@@ -573,7 +718,10 @@ declare const socialProviders: {
|
|
|
573
718
|
idTokenNonce?: string | undefined;
|
|
574
719
|
additionalParams?: Record<string, string> | undefined;
|
|
575
720
|
}): Promise<URL>;
|
|
576
|
-
validateAuthorizationCode: ({
|
|
721
|
+
validateAuthorizationCode: ({
|
|
722
|
+
code,
|
|
723
|
+
redirectURI
|
|
724
|
+
}: {
|
|
577
725
|
code: string;
|
|
578
726
|
redirectURI: string;
|
|
579
727
|
codeVerifier?: string | undefined;
|
|
@@ -598,7 +746,9 @@ declare const socialProviders: {
|
|
|
598
746
|
twitter: (options: TwitterOption) => {
|
|
599
747
|
id: "twitter";
|
|
600
748
|
name: string;
|
|
601
|
-
accountSubject: ({
|
|
749
|
+
accountSubject: ({
|
|
750
|
+
profile
|
|
751
|
+
}: OAuthAccountKeyContext<TwitterProfile>) => string;
|
|
602
752
|
createAuthorizationURL(data: {
|
|
603
753
|
state: string;
|
|
604
754
|
codeVerifier: string;
|
|
@@ -609,7 +759,11 @@ declare const socialProviders: {
|
|
|
609
759
|
idTokenNonce?: string | undefined;
|
|
610
760
|
additionalParams?: Record<string, string> | undefined;
|
|
611
761
|
}): Promise<URL>;
|
|
612
|
-
validateAuthorizationCode: ({
|
|
762
|
+
validateAuthorizationCode: ({
|
|
763
|
+
code,
|
|
764
|
+
codeVerifier,
|
|
765
|
+
redirectURI
|
|
766
|
+
}: {
|
|
613
767
|
code: string;
|
|
614
768
|
redirectURI: string;
|
|
615
769
|
codeVerifier?: string | undefined;
|
|
@@ -634,8 +788,16 @@ declare const socialProviders: {
|
|
|
634
788
|
dropbox: (options: DropboxOptions) => {
|
|
635
789
|
id: "dropbox";
|
|
636
790
|
name: string;
|
|
637
|
-
accountSubject: ({
|
|
638
|
-
|
|
791
|
+
accountSubject: ({
|
|
792
|
+
profile
|
|
793
|
+
}: OAuthAccountKeyContext<DropboxProfile>) => string;
|
|
794
|
+
createAuthorizationURL: ({
|
|
795
|
+
state,
|
|
796
|
+
scopes,
|
|
797
|
+
codeVerifier,
|
|
798
|
+
redirectURI,
|
|
799
|
+
additionalParams
|
|
800
|
+
}: {
|
|
639
801
|
state: string;
|
|
640
802
|
codeVerifier: string;
|
|
641
803
|
scopes?: string[] | undefined;
|
|
@@ -645,7 +807,11 @@ declare const socialProviders: {
|
|
|
645
807
|
idTokenNonce?: string | undefined;
|
|
646
808
|
additionalParams?: Record<string, string> | undefined;
|
|
647
809
|
}) => Promise<URL>;
|
|
648
|
-
validateAuthorizationCode: ({
|
|
810
|
+
validateAuthorizationCode: ({
|
|
811
|
+
code,
|
|
812
|
+
codeVerifier,
|
|
813
|
+
redirectURI
|
|
814
|
+
}: {
|
|
649
815
|
code: string;
|
|
650
816
|
redirectURI: string;
|
|
651
817
|
codeVerifier?: string | undefined;
|
|
@@ -670,8 +836,16 @@ declare const socialProviders: {
|
|
|
670
836
|
kick: (options: KickOptions) => {
|
|
671
837
|
id: "kick";
|
|
672
838
|
name: string;
|
|
673
|
-
accountSubject: ({
|
|
674
|
-
|
|
839
|
+
accountSubject: ({
|
|
840
|
+
profile
|
|
841
|
+
}: OAuthAccountKeyContext<KickProfile>) => string;
|
|
842
|
+
createAuthorizationURL({
|
|
843
|
+
state,
|
|
844
|
+
scopes,
|
|
845
|
+
redirectURI,
|
|
846
|
+
codeVerifier,
|
|
847
|
+
additionalParams
|
|
848
|
+
}: {
|
|
675
849
|
state: string;
|
|
676
850
|
codeVerifier: string;
|
|
677
851
|
scopes?: string[] | undefined;
|
|
@@ -681,7 +855,11 @@ declare const socialProviders: {
|
|
|
681
855
|
idTokenNonce?: string | undefined;
|
|
682
856
|
additionalParams?: Record<string, string> | undefined;
|
|
683
857
|
}): Promise<URL>;
|
|
684
|
-
validateAuthorizationCode({
|
|
858
|
+
validateAuthorizationCode({
|
|
859
|
+
code,
|
|
860
|
+
redirectURI,
|
|
861
|
+
codeVerifier
|
|
862
|
+
}: {
|
|
685
863
|
code: string;
|
|
686
864
|
redirectURI: string;
|
|
687
865
|
codeVerifier?: string | undefined;
|
|
@@ -706,8 +884,16 @@ declare const socialProviders: {
|
|
|
706
884
|
linear: (options: LinearOptions) => {
|
|
707
885
|
id: "linear";
|
|
708
886
|
name: string;
|
|
709
|
-
accountSubject: ({
|
|
710
|
-
|
|
887
|
+
accountSubject: ({
|
|
888
|
+
profile
|
|
889
|
+
}: OAuthAccountKeyContext<LinearUser>) => string;
|
|
890
|
+
createAuthorizationURL({
|
|
891
|
+
state,
|
|
892
|
+
scopes,
|
|
893
|
+
loginHint,
|
|
894
|
+
redirectURI,
|
|
895
|
+
additionalParams
|
|
896
|
+
}: {
|
|
711
897
|
state: string;
|
|
712
898
|
codeVerifier: string;
|
|
713
899
|
scopes?: string[] | undefined;
|
|
@@ -717,7 +903,10 @@ declare const socialProviders: {
|
|
|
717
903
|
idTokenNonce?: string | undefined;
|
|
718
904
|
additionalParams?: Record<string, string> | undefined;
|
|
719
905
|
}): Promise<URL>;
|
|
720
|
-
validateAuthorizationCode: ({
|
|
906
|
+
validateAuthorizationCode: ({
|
|
907
|
+
code,
|
|
908
|
+
redirectURI
|
|
909
|
+
}: {
|
|
721
910
|
code: string;
|
|
722
911
|
redirectURI: string;
|
|
723
912
|
codeVerifier?: string | undefined;
|
|
@@ -742,8 +931,16 @@ declare const socialProviders: {
|
|
|
742
931
|
linkedin: (options: LinkedInOptions) => {
|
|
743
932
|
id: "linkedin";
|
|
744
933
|
name: string;
|
|
745
|
-
accountSubject: ({
|
|
746
|
-
|
|
934
|
+
accountSubject: ({
|
|
935
|
+
profile
|
|
936
|
+
}: OAuthAccountKeyContext<LinkedInProfile>) => string;
|
|
937
|
+
createAuthorizationURL: ({
|
|
938
|
+
state,
|
|
939
|
+
scopes,
|
|
940
|
+
redirectURI,
|
|
941
|
+
loginHint,
|
|
942
|
+
additionalParams
|
|
943
|
+
}: {
|
|
747
944
|
state: string;
|
|
748
945
|
codeVerifier: string;
|
|
749
946
|
scopes?: string[] | undefined;
|
|
@@ -753,7 +950,10 @@ declare const socialProviders: {
|
|
|
753
950
|
idTokenNonce?: string | undefined;
|
|
754
951
|
additionalParams?: Record<string, string> | undefined;
|
|
755
952
|
}) => Promise<URL>;
|
|
756
|
-
validateAuthorizationCode: ({
|
|
953
|
+
validateAuthorizationCode: ({
|
|
954
|
+
code,
|
|
955
|
+
redirectURI
|
|
956
|
+
}: {
|
|
757
957
|
code: string;
|
|
758
958
|
redirectURI: string;
|
|
759
959
|
codeVerifier?: string | undefined;
|
|
@@ -778,8 +978,17 @@ declare const socialProviders: {
|
|
|
778
978
|
gitlab: (options: GitlabOptions) => {
|
|
779
979
|
id: "gitlab";
|
|
780
980
|
name: string;
|
|
781
|
-
accountSubject: ({
|
|
782
|
-
|
|
981
|
+
accountSubject: ({
|
|
982
|
+
profile
|
|
983
|
+
}: OAuthAccountKeyContext<GitlabProfile>) => number;
|
|
984
|
+
createAuthorizationURL: ({
|
|
985
|
+
state,
|
|
986
|
+
scopes,
|
|
987
|
+
codeVerifier,
|
|
988
|
+
loginHint,
|
|
989
|
+
redirectURI,
|
|
990
|
+
additionalParams
|
|
991
|
+
}: {
|
|
783
992
|
state: string;
|
|
784
993
|
codeVerifier: string;
|
|
785
994
|
scopes?: string[] | undefined;
|
|
@@ -789,7 +998,11 @@ declare const socialProviders: {
|
|
|
789
998
|
idTokenNonce?: string | undefined;
|
|
790
999
|
additionalParams?: Record<string, string> | undefined;
|
|
791
1000
|
}) => Promise<URL>;
|
|
792
|
-
validateAuthorizationCode: ({
|
|
1001
|
+
validateAuthorizationCode: ({
|
|
1002
|
+
code,
|
|
1003
|
+
redirectURI,
|
|
1004
|
+
codeVerifier
|
|
1005
|
+
}: {
|
|
793
1006
|
code: string;
|
|
794
1007
|
redirectURI: string;
|
|
795
1008
|
codeVerifier?: string | undefined;
|
|
@@ -814,8 +1027,15 @@ declare const socialProviders: {
|
|
|
814
1027
|
tiktok: (options: TiktokOptions) => {
|
|
815
1028
|
id: "tiktok";
|
|
816
1029
|
name: string;
|
|
817
|
-
accountSubject: ({
|
|
818
|
-
|
|
1030
|
+
accountSubject: ({
|
|
1031
|
+
profile
|
|
1032
|
+
}: OAuthAccountKeyContext<TiktokProfile>) => string;
|
|
1033
|
+
createAuthorizationURL({
|
|
1034
|
+
state,
|
|
1035
|
+
scopes,
|
|
1036
|
+
redirectURI,
|
|
1037
|
+
additionalParams
|
|
1038
|
+
}: {
|
|
819
1039
|
state: string;
|
|
820
1040
|
codeVerifier: string;
|
|
821
1041
|
scopes?: string[] | undefined;
|
|
@@ -825,7 +1045,10 @@ declare const socialProviders: {
|
|
|
825
1045
|
idTokenNonce?: string | undefined;
|
|
826
1046
|
additionalParams?: Record<string, string> | undefined;
|
|
827
1047
|
}): URL;
|
|
828
|
-
validateAuthorizationCode: ({
|
|
1048
|
+
validateAuthorizationCode: ({
|
|
1049
|
+
code,
|
|
1050
|
+
redirectURI
|
|
1051
|
+
}: {
|
|
829
1052
|
code: string;
|
|
830
1053
|
redirectURI: string;
|
|
831
1054
|
codeVerifier?: string | undefined;
|
|
@@ -850,8 +1073,15 @@ declare const socialProviders: {
|
|
|
850
1073
|
reddit: (options: RedditOptions) => {
|
|
851
1074
|
id: "reddit";
|
|
852
1075
|
name: string;
|
|
853
|
-
accountSubject: ({
|
|
854
|
-
|
|
1076
|
+
accountSubject: ({
|
|
1077
|
+
profile
|
|
1078
|
+
}: OAuthAccountKeyContext<RedditProfile>) => string;
|
|
1079
|
+
createAuthorizationURL({
|
|
1080
|
+
state,
|
|
1081
|
+
scopes,
|
|
1082
|
+
redirectURI,
|
|
1083
|
+
additionalParams
|
|
1084
|
+
}: {
|
|
855
1085
|
state: string;
|
|
856
1086
|
codeVerifier: string;
|
|
857
1087
|
scopes?: string[] | undefined;
|
|
@@ -861,7 +1091,10 @@ declare const socialProviders: {
|
|
|
861
1091
|
idTokenNonce?: string | undefined;
|
|
862
1092
|
additionalParams?: Record<string, string> | undefined;
|
|
863
1093
|
}): Promise<URL>;
|
|
864
|
-
validateAuthorizationCode: ({
|
|
1094
|
+
validateAuthorizationCode: ({
|
|
1095
|
+
code,
|
|
1096
|
+
redirectURI
|
|
1097
|
+
}: {
|
|
865
1098
|
code: string;
|
|
866
1099
|
redirectURI: string;
|
|
867
1100
|
codeVerifier?: string | undefined;
|
|
@@ -886,8 +1119,15 @@ declare const socialProviders: {
|
|
|
886
1119
|
roblox: (options: RobloxOptions) => {
|
|
887
1120
|
id: "roblox";
|
|
888
1121
|
name: string;
|
|
889
|
-
accountSubject: ({
|
|
890
|
-
|
|
1122
|
+
accountSubject: ({
|
|
1123
|
+
profile
|
|
1124
|
+
}: OAuthAccountKeyContext<RobloxProfile>) => string;
|
|
1125
|
+
createAuthorizationURL({
|
|
1126
|
+
state,
|
|
1127
|
+
scopes,
|
|
1128
|
+
redirectURI,
|
|
1129
|
+
additionalParams
|
|
1130
|
+
}: {
|
|
891
1131
|
state: string;
|
|
892
1132
|
codeVerifier: string;
|
|
893
1133
|
scopes?: string[] | undefined;
|
|
@@ -897,7 +1137,10 @@ declare const socialProviders: {
|
|
|
897
1137
|
idTokenNonce?: string | undefined;
|
|
898
1138
|
additionalParams?: Record<string, string> | undefined;
|
|
899
1139
|
}): Promise<URL>;
|
|
900
|
-
validateAuthorizationCode: ({
|
|
1140
|
+
validateAuthorizationCode: ({
|
|
1141
|
+
code,
|
|
1142
|
+
redirectURI
|
|
1143
|
+
}: {
|
|
901
1144
|
code: string;
|
|
902
1145
|
redirectURI: string;
|
|
903
1146
|
codeVerifier?: string | undefined;
|
|
@@ -922,8 +1165,16 @@ declare const socialProviders: {
|
|
|
922
1165
|
salesforce: (options: SalesforceOptions) => {
|
|
923
1166
|
id: "salesforce";
|
|
924
1167
|
name: string;
|
|
925
|
-
accountSubject: ({
|
|
926
|
-
|
|
1168
|
+
accountSubject: ({
|
|
1169
|
+
profile
|
|
1170
|
+
}: OAuthAccountKeyContext<SalesforceProfile>) => string;
|
|
1171
|
+
createAuthorizationURL({
|
|
1172
|
+
state,
|
|
1173
|
+
scopes,
|
|
1174
|
+
codeVerifier,
|
|
1175
|
+
redirectURI,
|
|
1176
|
+
additionalParams
|
|
1177
|
+
}: {
|
|
927
1178
|
state: string;
|
|
928
1179
|
codeVerifier: string;
|
|
929
1180
|
scopes?: string[] | undefined;
|
|
@@ -933,7 +1184,11 @@ declare const socialProviders: {
|
|
|
933
1184
|
idTokenNonce?: string | undefined;
|
|
934
1185
|
additionalParams?: Record<string, string> | undefined;
|
|
935
1186
|
}): Promise<URL>;
|
|
936
|
-
validateAuthorizationCode: ({
|
|
1187
|
+
validateAuthorizationCode: ({
|
|
1188
|
+
code,
|
|
1189
|
+
codeVerifier,
|
|
1190
|
+
redirectURI
|
|
1191
|
+
}: {
|
|
937
1192
|
code: string;
|
|
938
1193
|
redirectURI: string;
|
|
939
1194
|
codeVerifier?: string | undefined;
|
|
@@ -958,8 +1213,16 @@ declare const socialProviders: {
|
|
|
958
1213
|
vk: (options: VkOption) => {
|
|
959
1214
|
id: "vk";
|
|
960
1215
|
name: string;
|
|
961
|
-
accountSubject: ({
|
|
962
|
-
|
|
1216
|
+
accountSubject: ({
|
|
1217
|
+
profile
|
|
1218
|
+
}: OAuthAccountKeyContext<VkProfile>) => string;
|
|
1219
|
+
createAuthorizationURL({
|
|
1220
|
+
state,
|
|
1221
|
+
scopes,
|
|
1222
|
+
codeVerifier,
|
|
1223
|
+
redirectURI,
|
|
1224
|
+
additionalParams
|
|
1225
|
+
}: {
|
|
963
1226
|
state: string;
|
|
964
1227
|
codeVerifier: string;
|
|
965
1228
|
scopes?: string[] | undefined;
|
|
@@ -969,7 +1232,12 @@ declare const socialProviders: {
|
|
|
969
1232
|
idTokenNonce?: string | undefined;
|
|
970
1233
|
additionalParams?: Record<string, string> | undefined;
|
|
971
1234
|
}): Promise<URL>;
|
|
972
|
-
validateAuthorizationCode: ({
|
|
1235
|
+
validateAuthorizationCode: ({
|
|
1236
|
+
code,
|
|
1237
|
+
codeVerifier,
|
|
1238
|
+
redirectURI,
|
|
1239
|
+
deviceId
|
|
1240
|
+
}: {
|
|
973
1241
|
code: string;
|
|
974
1242
|
redirectURI: string;
|
|
975
1243
|
codeVerifier?: string | undefined;
|
|
@@ -994,8 +1262,15 @@ declare const socialProviders: {
|
|
|
994
1262
|
zoom: (userOptions: ZoomOptions) => {
|
|
995
1263
|
id: "zoom";
|
|
996
1264
|
name: string;
|
|
997
|
-
accountSubject: ({
|
|
998
|
-
|
|
1265
|
+
accountSubject: ({
|
|
1266
|
+
profile
|
|
1267
|
+
}: OAuthAccountKeyContext<ZoomProfile>) => string;
|
|
1268
|
+
createAuthorizationURL: ({
|
|
1269
|
+
state,
|
|
1270
|
+
redirectURI,
|
|
1271
|
+
codeVerifier,
|
|
1272
|
+
additionalParams
|
|
1273
|
+
}: {
|
|
999
1274
|
state: string;
|
|
1000
1275
|
codeVerifier: string;
|
|
1001
1276
|
scopes?: string[] | undefined;
|
|
@@ -1005,7 +1280,11 @@ declare const socialProviders: {
|
|
|
1005
1280
|
idTokenNonce?: string | undefined;
|
|
1006
1281
|
additionalParams?: Record<string, string> | undefined;
|
|
1007
1282
|
}) => Promise<URL>;
|
|
1008
|
-
validateAuthorizationCode: ({
|
|
1283
|
+
validateAuthorizationCode: ({
|
|
1284
|
+
code,
|
|
1285
|
+
redirectURI,
|
|
1286
|
+
codeVerifier
|
|
1287
|
+
}: {
|
|
1009
1288
|
code: string;
|
|
1010
1289
|
redirectURI: string;
|
|
1011
1290
|
codeVerifier?: string | undefined;
|
|
@@ -1029,8 +1308,16 @@ declare const socialProviders: {
|
|
|
1029
1308
|
notion: (options: NotionOptions) => {
|
|
1030
1309
|
id: "notion";
|
|
1031
1310
|
name: string;
|
|
1032
|
-
accountSubject: ({
|
|
1033
|
-
|
|
1311
|
+
accountSubject: ({
|
|
1312
|
+
profile
|
|
1313
|
+
}: OAuthAccountKeyContext<NotionProfile>) => string;
|
|
1314
|
+
createAuthorizationURL({
|
|
1315
|
+
state,
|
|
1316
|
+
scopes,
|
|
1317
|
+
loginHint,
|
|
1318
|
+
redirectURI,
|
|
1319
|
+
additionalParams
|
|
1320
|
+
}: {
|
|
1034
1321
|
state: string;
|
|
1035
1322
|
codeVerifier: string;
|
|
1036
1323
|
scopes?: string[] | undefined;
|
|
@@ -1040,7 +1327,10 @@ declare const socialProviders: {
|
|
|
1040
1327
|
idTokenNonce?: string | undefined;
|
|
1041
1328
|
additionalParams?: Record<string, string> | undefined;
|
|
1042
1329
|
}): Promise<URL>;
|
|
1043
|
-
validateAuthorizationCode: ({
|
|
1330
|
+
validateAuthorizationCode: ({
|
|
1331
|
+
code,
|
|
1332
|
+
redirectURI
|
|
1333
|
+
}: {
|
|
1044
1334
|
code: string;
|
|
1045
1335
|
redirectURI: string;
|
|
1046
1336
|
codeVerifier?: string | undefined;
|
|
@@ -1065,8 +1355,15 @@ declare const socialProviders: {
|
|
|
1065
1355
|
kakao: (options: KakaoOptions) => {
|
|
1066
1356
|
id: "kakao";
|
|
1067
1357
|
name: string;
|
|
1068
|
-
accountSubject: ({
|
|
1069
|
-
|
|
1358
|
+
accountSubject: ({
|
|
1359
|
+
profile
|
|
1360
|
+
}: OAuthAccountKeyContext<KakaoProfile>) => number;
|
|
1361
|
+
createAuthorizationURL({
|
|
1362
|
+
state,
|
|
1363
|
+
scopes,
|
|
1364
|
+
redirectURI,
|
|
1365
|
+
additionalParams
|
|
1366
|
+
}: {
|
|
1070
1367
|
state: string;
|
|
1071
1368
|
codeVerifier: string;
|
|
1072
1369
|
scopes?: string[] | undefined;
|
|
@@ -1076,7 +1373,10 @@ declare const socialProviders: {
|
|
|
1076
1373
|
idTokenNonce?: string | undefined;
|
|
1077
1374
|
additionalParams?: Record<string, string> | undefined;
|
|
1078
1375
|
}): Promise<URL>;
|
|
1079
|
-
validateAuthorizationCode: ({
|
|
1376
|
+
validateAuthorizationCode: ({
|
|
1377
|
+
code,
|
|
1378
|
+
redirectURI
|
|
1379
|
+
}: {
|
|
1080
1380
|
code: string;
|
|
1081
1381
|
redirectURI: string;
|
|
1082
1382
|
codeVerifier?: string | undefined;
|
|
@@ -1110,8 +1410,15 @@ declare const socialProviders: {
|
|
|
1110
1410
|
naver: (options: NaverOptions) => {
|
|
1111
1411
|
id: "naver";
|
|
1112
1412
|
name: string;
|
|
1113
|
-
accountSubject: ({
|
|
1114
|
-
|
|
1413
|
+
accountSubject: ({
|
|
1414
|
+
profile
|
|
1415
|
+
}: OAuthAccountKeyContext<NaverProfile>) => string;
|
|
1416
|
+
createAuthorizationURL({
|
|
1417
|
+
state,
|
|
1418
|
+
scopes,
|
|
1419
|
+
redirectURI,
|
|
1420
|
+
additionalParams
|
|
1421
|
+
}: {
|
|
1115
1422
|
state: string;
|
|
1116
1423
|
codeVerifier: string;
|
|
1117
1424
|
scopes?: string[] | undefined;
|
|
@@ -1121,7 +1428,10 @@ declare const socialProviders: {
|
|
|
1121
1428
|
idTokenNonce?: string | undefined;
|
|
1122
1429
|
additionalParams?: Record<string, string> | undefined;
|
|
1123
1430
|
}): Promise<URL>;
|
|
1124
|
-
validateAuthorizationCode: ({
|
|
1431
|
+
validateAuthorizationCode: ({
|
|
1432
|
+
code,
|
|
1433
|
+
redirectURI
|
|
1434
|
+
}: {
|
|
1125
1435
|
code: string;
|
|
1126
1436
|
redirectURI: string;
|
|
1127
1437
|
codeVerifier?: string | undefined;
|
|
@@ -1155,9 +1465,18 @@ declare const socialProviders: {
|
|
|
1155
1465
|
line: (options: LineOptions) => {
|
|
1156
1466
|
id: "line";
|
|
1157
1467
|
name: string;
|
|
1158
|
-
accountSubject: ({
|
|
1468
|
+
accountSubject: ({
|
|
1469
|
+
profile
|
|
1470
|
+
}: OAuthAccountKeyContext<LineIdTokenPayload | LineUserInfo>) => string;
|
|
1159
1471
|
accountIssuer: string;
|
|
1160
|
-
createAuthorizationURL({
|
|
1472
|
+
createAuthorizationURL({
|
|
1473
|
+
state,
|
|
1474
|
+
scopes,
|
|
1475
|
+
codeVerifier,
|
|
1476
|
+
redirectURI,
|
|
1477
|
+
loginHint,
|
|
1478
|
+
additionalParams
|
|
1479
|
+
}: {
|
|
1161
1480
|
state: string;
|
|
1162
1481
|
codeVerifier: string;
|
|
1163
1482
|
scopes?: string[] | undefined;
|
|
@@ -1167,7 +1486,11 @@ declare const socialProviders: {
|
|
|
1167
1486
|
idTokenNonce?: string | undefined;
|
|
1168
1487
|
additionalParams?: Record<string, string> | undefined;
|
|
1169
1488
|
}): Promise<URL>;
|
|
1170
|
-
validateAuthorizationCode: ({
|
|
1489
|
+
validateAuthorizationCode: ({
|
|
1490
|
+
code,
|
|
1491
|
+
codeVerifier,
|
|
1492
|
+
redirectURI
|
|
1493
|
+
}: {
|
|
1171
1494
|
code: string;
|
|
1172
1495
|
redirectURI: string;
|
|
1173
1496
|
codeVerifier?: string | undefined;
|
|
@@ -1195,9 +1518,18 @@ declare const socialProviders: {
|
|
|
1195
1518
|
paybin: (options: PaybinOptions) => {
|
|
1196
1519
|
id: "paybin";
|
|
1197
1520
|
name: string;
|
|
1198
|
-
accountSubject: ({
|
|
1521
|
+
accountSubject: ({
|
|
1522
|
+
profile
|
|
1523
|
+
}: OAuthAccountKeyContext<PaybinProfile>) => string;
|
|
1199
1524
|
accountIssuer: string;
|
|
1200
|
-
createAuthorizationURL({
|
|
1525
|
+
createAuthorizationURL({
|
|
1526
|
+
state,
|
|
1527
|
+
scopes,
|
|
1528
|
+
codeVerifier,
|
|
1529
|
+
redirectURI,
|
|
1530
|
+
loginHint,
|
|
1531
|
+
additionalParams
|
|
1532
|
+
}: {
|
|
1201
1533
|
state: string;
|
|
1202
1534
|
codeVerifier: string;
|
|
1203
1535
|
scopes?: string[] | undefined;
|
|
@@ -1207,7 +1539,11 @@ declare const socialProviders: {
|
|
|
1207
1539
|
idTokenNonce?: string | undefined;
|
|
1208
1540
|
additionalParams?: Record<string, string> | undefined;
|
|
1209
1541
|
}): Promise<URL>;
|
|
1210
|
-
validateAuthorizationCode: ({
|
|
1542
|
+
validateAuthorizationCode: ({
|
|
1543
|
+
code,
|
|
1544
|
+
codeVerifier,
|
|
1545
|
+
redirectURI
|
|
1546
|
+
}: {
|
|
1211
1547
|
code: string;
|
|
1212
1548
|
redirectURI: string;
|
|
1213
1549
|
codeVerifier?: string | undefined;
|
|
@@ -1232,8 +1568,15 @@ declare const socialProviders: {
|
|
|
1232
1568
|
paypal: (options: PayPalOptions) => {
|
|
1233
1569
|
id: "paypal";
|
|
1234
1570
|
name: string;
|
|
1235
|
-
accountSubject: ({
|
|
1236
|
-
|
|
1571
|
+
accountSubject: ({
|
|
1572
|
+
profile
|
|
1573
|
+
}: OAuthAccountKeyContext<PayPalProfile>) => string;
|
|
1574
|
+
createAuthorizationURL({
|
|
1575
|
+
state,
|
|
1576
|
+
codeVerifier,
|
|
1577
|
+
redirectURI,
|
|
1578
|
+
additionalParams
|
|
1579
|
+
}: {
|
|
1237
1580
|
state: string;
|
|
1238
1581
|
codeVerifier: string;
|
|
1239
1582
|
scopes?: string[] | undefined;
|
|
@@ -1243,7 +1586,10 @@ declare const socialProviders: {
|
|
|
1243
1586
|
idTokenNonce?: string | undefined;
|
|
1244
1587
|
additionalParams?: Record<string, string> | undefined;
|
|
1245
1588
|
}): Promise<URL>;
|
|
1246
|
-
validateAuthorizationCode: ({
|
|
1589
|
+
validateAuthorizationCode: ({
|
|
1590
|
+
code,
|
|
1591
|
+
redirectURI
|
|
1592
|
+
}: {
|
|
1247
1593
|
code: string;
|
|
1248
1594
|
redirectURI: string;
|
|
1249
1595
|
codeVerifier?: string | undefined;
|
|
@@ -1286,8 +1632,16 @@ declare const socialProviders: {
|
|
|
1286
1632
|
polar: (options: PolarOptions) => {
|
|
1287
1633
|
id: "polar";
|
|
1288
1634
|
name: string;
|
|
1289
|
-
accountSubject: ({
|
|
1290
|
-
|
|
1635
|
+
accountSubject: ({
|
|
1636
|
+
profile
|
|
1637
|
+
}: OAuthAccountKeyContext<PolarProfile>) => string;
|
|
1638
|
+
createAuthorizationURL({
|
|
1639
|
+
state,
|
|
1640
|
+
scopes,
|
|
1641
|
+
codeVerifier,
|
|
1642
|
+
redirectURI,
|
|
1643
|
+
additionalParams
|
|
1644
|
+
}: {
|
|
1291
1645
|
state: string;
|
|
1292
1646
|
codeVerifier: string;
|
|
1293
1647
|
scopes?: string[] | undefined;
|
|
@@ -1297,7 +1651,11 @@ declare const socialProviders: {
|
|
|
1297
1651
|
idTokenNonce?: string | undefined;
|
|
1298
1652
|
additionalParams?: Record<string, string> | undefined;
|
|
1299
1653
|
}): Promise<URL>;
|
|
1300
|
-
validateAuthorizationCode: ({
|
|
1654
|
+
validateAuthorizationCode: ({
|
|
1655
|
+
code,
|
|
1656
|
+
codeVerifier,
|
|
1657
|
+
redirectURI
|
|
1658
|
+
}: {
|
|
1301
1659
|
code: string;
|
|
1302
1660
|
redirectURI: string;
|
|
1303
1661
|
codeVerifier?: string | undefined;
|
|
@@ -1322,8 +1680,16 @@ declare const socialProviders: {
|
|
|
1322
1680
|
railway: (options: RailwayOptions) => {
|
|
1323
1681
|
id: "railway";
|
|
1324
1682
|
name: string;
|
|
1325
|
-
accountSubject: ({
|
|
1326
|
-
|
|
1683
|
+
accountSubject: ({
|
|
1684
|
+
profile
|
|
1685
|
+
}: OAuthAccountKeyContext<RailwayProfile>) => string;
|
|
1686
|
+
createAuthorizationURL({
|
|
1687
|
+
state,
|
|
1688
|
+
scopes,
|
|
1689
|
+
codeVerifier,
|
|
1690
|
+
redirectURI,
|
|
1691
|
+
additionalParams
|
|
1692
|
+
}: {
|
|
1327
1693
|
state: string;
|
|
1328
1694
|
codeVerifier: string;
|
|
1329
1695
|
scopes?: string[] | undefined;
|
|
@@ -1333,7 +1699,11 @@ declare const socialProviders: {
|
|
|
1333
1699
|
idTokenNonce?: string | undefined;
|
|
1334
1700
|
additionalParams?: Record<string, string> | undefined;
|
|
1335
1701
|
}): Promise<URL>;
|
|
1336
|
-
validateAuthorizationCode: ({
|
|
1702
|
+
validateAuthorizationCode: ({
|
|
1703
|
+
code,
|
|
1704
|
+
codeVerifier,
|
|
1705
|
+
redirectURI
|
|
1706
|
+
}: {
|
|
1337
1707
|
code: string;
|
|
1338
1708
|
redirectURI: string;
|
|
1339
1709
|
codeVerifier?: string | undefined;
|
|
@@ -1358,8 +1728,16 @@ declare const socialProviders: {
|
|
|
1358
1728
|
vercel: (options: VercelOptions) => {
|
|
1359
1729
|
id: "vercel";
|
|
1360
1730
|
name: string;
|
|
1361
|
-
accountSubject: ({
|
|
1362
|
-
|
|
1731
|
+
accountSubject: ({
|
|
1732
|
+
profile
|
|
1733
|
+
}: OAuthAccountKeyContext<VercelProfile>) => string;
|
|
1734
|
+
createAuthorizationURL({
|
|
1735
|
+
state,
|
|
1736
|
+
scopes,
|
|
1737
|
+
codeVerifier,
|
|
1738
|
+
redirectURI,
|
|
1739
|
+
additionalParams
|
|
1740
|
+
}: {
|
|
1363
1741
|
state: string;
|
|
1364
1742
|
codeVerifier: string;
|
|
1365
1743
|
scopes?: string[] | undefined;
|
|
@@ -1369,7 +1747,11 @@ declare const socialProviders: {
|
|
|
1369
1747
|
idTokenNonce?: string | undefined;
|
|
1370
1748
|
additionalParams?: Record<string, string> | undefined;
|
|
1371
1749
|
}): Promise<URL>;
|
|
1372
|
-
validateAuthorizationCode: ({
|
|
1750
|
+
validateAuthorizationCode: ({
|
|
1751
|
+
code,
|
|
1752
|
+
codeVerifier,
|
|
1753
|
+
redirectURI
|
|
1754
|
+
}: {
|
|
1373
1755
|
code: string;
|
|
1374
1756
|
redirectURI: string;
|
|
1375
1757
|
codeVerifier?: string | undefined;
|
|
@@ -1393,8 +1775,15 @@ declare const socialProviders: {
|
|
|
1393
1775
|
wechat: (options: WeChatOptions) => {
|
|
1394
1776
|
id: "wechat";
|
|
1395
1777
|
name: string;
|
|
1396
|
-
accountSubject: ({
|
|
1397
|
-
|
|
1778
|
+
accountSubject: ({
|
|
1779
|
+
profile
|
|
1780
|
+
}: OAuthAccountKeyContext<WeChatProfile>) => string;
|
|
1781
|
+
createAuthorizationURL({
|
|
1782
|
+
state,
|
|
1783
|
+
scopes,
|
|
1784
|
+
redirectURI,
|
|
1785
|
+
additionalParams
|
|
1786
|
+
}: {
|
|
1398
1787
|
state: string;
|
|
1399
1788
|
codeVerifier: string;
|
|
1400
1789
|
scopes?: string[] | undefined;
|
|
@@ -1404,7 +1793,9 @@ declare const socialProviders: {
|
|
|
1404
1793
|
idTokenNonce?: string | undefined;
|
|
1405
1794
|
additionalParams?: Record<string, string> | undefined;
|
|
1406
1795
|
}): URL;
|
|
1407
|
-
validateAuthorizationCode: ({
|
|
1796
|
+
validateAuthorizationCode: ({
|
|
1797
|
+
code
|
|
1798
|
+
}: {
|
|
1408
1799
|
code: string;
|
|
1409
1800
|
redirectURI: string;
|
|
1410
1801
|
codeVerifier?: string | undefined;
|
|
@@ -1446,7 +1837,7 @@ declare const SocialProviderListEnum: z.ZodType<SocialProviderList[number] | (st
|
|
|
1446
1837
|
type SocialProvider = z.infer<typeof SocialProviderListEnum>;
|
|
1447
1838
|
type SocialProviders = { [K in SocialProviderList[number]]?: AwaitableFunction<Parameters<(typeof socialProviders)[K]>[0] & {
|
|
1448
1839
|
enabled?: boolean | undefined;
|
|
1449
|
-
}
|
|
1840
|
+
}> };
|
|
1450
1841
|
type SocialProviderList = typeof socialProviderList;
|
|
1451
1842
|
//#endregion
|
|
1452
1843
|
export { AccountStatus, AppleNonConformUser, AppleOptions, AppleProfile, AtlassianOptions, AtlassianProfile, CognitoOptions, CognitoProfile, DiscordOptions, DiscordProfile, DropboxOptions, DropboxProfile, FacebookGraphProfile, FacebookLimitedLoginProfile, FacebookOptions, FacebookProfile, FigmaOptions, FigmaProfile, GithubOptions, GithubProfile, GitlabOptions, GitlabProfile, GoogleOptions, GoogleProfile, HuggingFaceOptions, HuggingFaceProfile, KakaoOptions, KakaoProfile, KickOptions, KickProfile, LineIdTokenPayload, LineOptions, LineUserInfo, LinearOptions, LinearProfile, LinearUser, LinkedInOptions, LinkedInProfile, LoginType, MicrosoftEntraIDProfile, MicrosoftOptions, NaverOptions, NaverProfile, NotionOptions, NotionProfile, PayPalOptions, PayPalProfile, PayPalTokenResponse, PaybinOptions, PaybinProfile, PhoneNumber, PolarOptions, PolarProfile, PronounOption, RailwayOptions, RailwayProfile, RedditOptions, RedditProfile, RobloxOptions, RobloxProfile, SalesforceOptions, SalesforceProfile, SlackOptions, SlackProfile, SocialProvider, SocialProviderList, SocialProviderListEnum, SocialProviders, SpotifyOptions, SpotifyProfile, TiktokOptions, TiktokProfile, TwitchOptions, TwitchProfile, TwitterOption, TwitterProfile, VercelOptions, VercelProfile, VerifyGoogleIdTokenOptions, VkOption, VkProfile, WeChatOptions, WeChatProfile, ZoomOptions, ZoomProfile, apple, atlassian, cognito, discord, dropbox, facebook, figma, getApplePublicKey, getCognitoPublicKey, getGooglePublicKey, getMicrosoftPublicKey, github, gitlab, google, huggingface, isGoogleHostedDomainAllowed, kakao, kick, line, linear, linkedin, microsoft, naver, notion, paybin, paypal, polar, railway, reddit, roblox, salesforce, slack, socialProviderList, socialProviders, spotify, tiktok, twitch, twitter, vercel, verifyGoogleIdToken, vk, wechat, zoom };
|