@better-auth/core 1.6.23 → 1.6.25
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 +0 -1
- package/dist/async_hooks/pure.index.d.mts +0 -1
- package/dist/context/endpoint-context.d.mts +1 -1
- package/dist/context/global.d.mts +0 -1
- package/dist/context/global.mjs +1 -1
- package/dist/context/request-state.d.mts +0 -1
- package/dist/context/request-state.mjs +8 -5
- package/dist/context/transaction.d.mts +1 -1
- package/dist/db/adapter/factory.d.mts +3 -5
- package/dist/db/adapter/factory.mjs +1 -1
- package/dist/db/adapter/get-default-field-name.d.mts +2 -9
- package/dist/db/adapter/get-default-model-name.d.mts +1 -5
- package/dist/db/adapter/get-default-model-name.mjs +6 -5
- package/dist/db/adapter/get-field-attributes.d.mts +4 -11
- package/dist/db/adapter/get-field-name.d.mts +2 -9
- package/dist/db/adapter/get-id-field.d.mts +4 -12
- package/dist/db/adapter/get-model-name.d.mts +1 -5
- package/dist/db/adapter/index.d.mts +7 -32
- package/dist/db/adapter/types.d.mts +5 -17
- package/dist/db/adapter/utils.d.mts +0 -1
- package/dist/db/get-tables.d.mts +1 -0
- package/dist/db/get-tables.mjs +2 -2
- package/dist/db/plugin.d.mts +1 -2
- package/dist/db/schema/account.d.mts +1 -1
- package/dist/db/schema/account.mjs +12 -0
- package/dist/db/schema/rate-limit.d.mts +1 -1
- package/dist/db/schema/rate-limit.mjs +9 -0
- package/dist/db/schema/session.d.mts +1 -1
- package/dist/db/schema/shared.d.mts +0 -1
- package/dist/db/schema/user.d.mts +1 -1
- package/dist/db/schema/verification.d.mts +1 -1
- package/dist/db/type.d.mts +5 -8
- package/dist/env/logger.d.mts +25 -25
- package/dist/error/codes.d.mts +0 -1
- package/dist/error/index.d.mts +0 -1
- package/dist/index.d.mts +1 -1
- package/dist/instrumentation/attributes.d.mts +0 -1
- package/dist/instrumentation/pure.index.d.mts +0 -1
- package/dist/instrumentation/tracer.mjs +1 -1
- package/dist/oauth2/client-credentials-token.d.mts +4 -20
- package/dist/oauth2/client-credentials-token.mjs +1 -4
- package/dist/oauth2/create-authorization-url.d.mts +3 -20
- package/dist/oauth2/oauth-provider.d.mts +9 -3
- package/dist/oauth2/refresh-access-token.d.mts +4 -22
- package/dist/oauth2/refresh-access-token.mjs +2 -8
- package/dist/oauth2/reject-redirects.mjs +1 -1
- package/dist/oauth2/utils.d.mts +0 -1
- package/dist/oauth2/utils.mjs +1 -2
- package/dist/oauth2/validate-authorization-code.d.mts +6 -37
- package/dist/oauth2/verify.d.mts +12 -10
- package/dist/oauth2/verify.mjs +2 -2
- package/dist/social-providers/apple.d.mts +7 -28
- package/dist/social-providers/apple.mjs +4 -3
- package/dist/social-providers/atlassian.d.mts +3 -11
- package/dist/social-providers/cognito.d.mts +6 -12
- package/dist/social-providers/cognito.mjs +2 -2
- package/dist/social-providers/discord.d.mts +3 -9
- package/dist/social-providers/dropbox.d.mts +3 -11
- package/dist/social-providers/facebook.d.mts +6 -11
- package/dist/social-providers/facebook.mjs +2 -2
- package/dist/social-providers/figma.d.mts +3 -11
- package/dist/social-providers/github.d.mts +3 -12
- package/dist/social-providers/gitlab.d.mts +3 -12
- package/dist/social-providers/google.d.mts +7 -20
- package/dist/social-providers/google.mjs +2 -2
- package/dist/social-providers/huggingface.d.mts +3 -11
- package/dist/social-providers/index.d.mts +78 -362
- package/dist/social-providers/kakao.d.mts +3 -9
- package/dist/social-providers/kick.d.mts +3 -11
- package/dist/social-providers/line.d.mts +6 -13
- package/dist/social-providers/line.mjs +2 -2
- package/dist/social-providers/linear.d.mts +3 -10
- package/dist/social-providers/linkedin.d.mts +3 -10
- package/dist/social-providers/microsoft-entra-id.d.mts +5 -6
- package/dist/social-providers/microsoft-entra-id.mjs +4 -3
- package/dist/social-providers/naver.d.mts +22 -18
- package/dist/social-providers/notion.d.mts +3 -10
- package/dist/social-providers/paybin.d.mts +3 -12
- package/dist/social-providers/paypal.d.mts +6 -10
- package/dist/social-providers/paypal.mjs +2 -2
- package/dist/social-providers/polar.d.mts +3 -11
- package/dist/social-providers/railway.d.mts +3 -11
- package/dist/social-providers/reddit.d.mts +3 -9
- package/dist/social-providers/roblox.d.mts +3 -9
- package/dist/social-providers/salesforce.d.mts +3 -11
- package/dist/social-providers/slack.d.mts +3 -9
- package/dist/social-providers/spotify.d.mts +3 -11
- package/dist/social-providers/tiktok.d.mts +5 -10
- package/dist/social-providers/twitch.d.mts +3 -9
- package/dist/social-providers/twitter.d.mts +26 -17
- package/dist/social-providers/vercel.d.mts +3 -11
- package/dist/social-providers/vk.d.mts +3 -12
- package/dist/social-providers/vk.mjs +4 -5
- package/dist/social-providers/wechat.d.mts +3 -8
- package/dist/social-providers/zoom.d.mts +5 -14
- package/dist/types/context.d.mts +2 -1
- package/dist/types/cookie.d.mts +0 -1
- package/dist/types/helper.d.mts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/init-options.d.mts +10 -7
- package/dist/types/plugin-client.d.mts +1 -3
- package/dist/types/plugin.d.mts +2 -2
- package/dist/utils/async.d.mts +0 -1
- package/dist/utils/db.d.mts +1 -0
- package/dist/utils/deprecate.d.mts +0 -1
- package/dist/utils/error-codes.d.mts +2 -2
- package/dist/utils/host.d.mts +27 -1
- package/dist/utils/host.mjs +1 -1
- package/dist/utils/ip.d.mts +1 -0
- package/dist/utils/ip.mjs +1 -1
- package/dist/utils/is-api-error.d.mts +0 -1
- package/dist/utils/redirect-uri.d.mts +0 -1
- package/package.json +2 -2
- package/src/context/request-state.ts +26 -6
- package/src/db/adapter/get-default-model-name.ts +23 -14
- package/src/db/get-tables.ts +17 -2
- package/src/oauth2/oauth-provider.ts +20 -4
- package/src/social-providers/apple.ts +9 -3
- package/src/social-providers/cognito.ts +7 -2
- package/src/social-providers/facebook.ts +7 -2
- package/src/social-providers/google.ts +7 -2
- package/src/social-providers/line.ts +7 -2
- package/src/social-providers/microsoft-entra-id.ts +7 -2
- package/src/social-providers/paypal.ts +7 -2
|
@@ -34,19 +34,16 @@ 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";
|
|
37
38
|
import { OAuth2Tokens } from "../oauth2/oauth-provider.mjs";
|
|
39
|
+
import "../oauth2/index.mjs";
|
|
38
40
|
import * as z from "zod";
|
|
39
|
-
|
|
40
41
|
//#region src/social-providers/index.d.ts
|
|
41
42
|
declare const socialProviders: {
|
|
42
43
|
apple: (options: AppleOptions) => {
|
|
43
44
|
id: "apple";
|
|
44
45
|
name: string;
|
|
45
|
-
createAuthorizationURL({
|
|
46
|
-
state,
|
|
47
|
-
scopes,
|
|
48
|
-
redirectURI
|
|
49
|
-
}: {
|
|
46
|
+
createAuthorizationURL({ state, scopes, redirectURI, codeVerifier }: {
|
|
50
47
|
state: string;
|
|
51
48
|
codeVerifier: string;
|
|
52
49
|
scopes?: string[] | undefined;
|
|
@@ -54,17 +51,13 @@ declare const socialProviders: {
|
|
|
54
51
|
display?: string | undefined;
|
|
55
52
|
loginHint?: string | undefined;
|
|
56
53
|
}): Promise<URL>;
|
|
57
|
-
validateAuthorizationCode: ({
|
|
58
|
-
code,
|
|
59
|
-
codeVerifier,
|
|
60
|
-
redirectURI
|
|
61
|
-
}: {
|
|
54
|
+
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
62
55
|
code: string;
|
|
63
56
|
redirectURI: string;
|
|
64
57
|
codeVerifier?: string | undefined;
|
|
65
58
|
deviceId?: string | undefined;
|
|
66
59
|
}) => Promise<OAuth2Tokens>;
|
|
67
|
-
verifyIdToken(token: string, nonce
|
|
60
|
+
verifyIdToken(token: string, nonce?: string, ctx?: import("@better-auth/core").GenericEndpointContext): Promise<boolean>;
|
|
68
61
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
69
62
|
getUserInfo(token: OAuth2Tokens & {
|
|
70
63
|
user?: {
|
|
@@ -90,12 +83,7 @@ declare const socialProviders: {
|
|
|
90
83
|
atlassian: (options: AtlassianOptions) => {
|
|
91
84
|
id: "atlassian";
|
|
92
85
|
name: string;
|
|
93
|
-
createAuthorizationURL({
|
|
94
|
-
state,
|
|
95
|
-
scopes,
|
|
96
|
-
codeVerifier,
|
|
97
|
-
redirectURI
|
|
98
|
-
}: {
|
|
86
|
+
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
99
87
|
state: string;
|
|
100
88
|
codeVerifier: string;
|
|
101
89
|
scopes?: string[] | undefined;
|
|
@@ -103,11 +91,7 @@ declare const socialProviders: {
|
|
|
103
91
|
display?: string | undefined;
|
|
104
92
|
loginHint?: string | undefined;
|
|
105
93
|
}): Promise<URL>;
|
|
106
|
-
validateAuthorizationCode: ({
|
|
107
|
-
code,
|
|
108
|
-
codeVerifier,
|
|
109
|
-
redirectURI
|
|
110
|
-
}: {
|
|
94
|
+
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
111
95
|
code: string;
|
|
112
96
|
redirectURI: string;
|
|
113
97
|
codeVerifier?: string | undefined;
|
|
@@ -138,12 +122,7 @@ declare const socialProviders: {
|
|
|
138
122
|
cognito: (options: CognitoOptions) => {
|
|
139
123
|
id: "cognito";
|
|
140
124
|
name: string;
|
|
141
|
-
createAuthorizationURL({
|
|
142
|
-
state,
|
|
143
|
-
scopes,
|
|
144
|
-
codeVerifier,
|
|
145
|
-
redirectURI
|
|
146
|
-
}: {
|
|
125
|
+
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
147
126
|
state: string;
|
|
148
127
|
codeVerifier: string;
|
|
149
128
|
scopes?: string[] | undefined;
|
|
@@ -151,18 +130,14 @@ declare const socialProviders: {
|
|
|
151
130
|
display?: string | undefined;
|
|
152
131
|
loginHint?: string | undefined;
|
|
153
132
|
}): Promise<URL>;
|
|
154
|
-
validateAuthorizationCode: ({
|
|
155
|
-
code,
|
|
156
|
-
codeVerifier,
|
|
157
|
-
redirectURI
|
|
158
|
-
}: {
|
|
133
|
+
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
159
134
|
code: string;
|
|
160
135
|
redirectURI: string;
|
|
161
136
|
codeVerifier?: string | undefined;
|
|
162
137
|
deviceId?: string | undefined;
|
|
163
138
|
}) => Promise<OAuth2Tokens>;
|
|
164
139
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
165
|
-
verifyIdToken(token: string, nonce
|
|
140
|
+
verifyIdToken(token: string, nonce?: string, ctx?: import("@better-auth/core").GenericEndpointContext): Promise<boolean>;
|
|
166
141
|
getUserInfo(token: OAuth2Tokens & {
|
|
167
142
|
user?: {
|
|
168
143
|
name?: {
|
|
@@ -187,11 +162,7 @@ declare const socialProviders: {
|
|
|
187
162
|
discord: (options: DiscordOptions) => {
|
|
188
163
|
id: "discord";
|
|
189
164
|
name: string;
|
|
190
|
-
createAuthorizationURL({
|
|
191
|
-
state,
|
|
192
|
-
scopes,
|
|
193
|
-
redirectURI
|
|
194
|
-
}: {
|
|
165
|
+
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
195
166
|
state: string;
|
|
196
167
|
codeVerifier: string;
|
|
197
168
|
scopes?: string[] | undefined;
|
|
@@ -199,10 +170,7 @@ declare const socialProviders: {
|
|
|
199
170
|
display?: string | undefined;
|
|
200
171
|
loginHint?: string | undefined;
|
|
201
172
|
}): URL;
|
|
202
|
-
validateAuthorizationCode: ({
|
|
203
|
-
code,
|
|
204
|
-
redirectURI
|
|
205
|
-
}: {
|
|
173
|
+
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
206
174
|
code: string;
|
|
207
175
|
redirectURI: string;
|
|
208
176
|
codeVerifier?: string | undefined;
|
|
@@ -233,12 +201,7 @@ declare const socialProviders: {
|
|
|
233
201
|
facebook: (options: FacebookOptions) => {
|
|
234
202
|
id: "facebook";
|
|
235
203
|
name: string;
|
|
236
|
-
createAuthorizationURL({
|
|
237
|
-
state,
|
|
238
|
-
scopes,
|
|
239
|
-
redirectURI,
|
|
240
|
-
loginHint
|
|
241
|
-
}: {
|
|
204
|
+
createAuthorizationURL({ state, scopes, redirectURI, loginHint }: {
|
|
242
205
|
state: string;
|
|
243
206
|
codeVerifier: string;
|
|
244
207
|
scopes?: string[] | undefined;
|
|
@@ -246,16 +209,13 @@ declare const socialProviders: {
|
|
|
246
209
|
display?: string | undefined;
|
|
247
210
|
loginHint?: string | undefined;
|
|
248
211
|
}): Promise<URL>;
|
|
249
|
-
validateAuthorizationCode: ({
|
|
250
|
-
code,
|
|
251
|
-
redirectURI
|
|
252
|
-
}: {
|
|
212
|
+
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
253
213
|
code: string;
|
|
254
214
|
redirectURI: string;
|
|
255
215
|
codeVerifier?: string | undefined;
|
|
256
216
|
deviceId?: string | undefined;
|
|
257
217
|
}) => Promise<OAuth2Tokens>;
|
|
258
|
-
verifyIdToken(token: string, nonce
|
|
218
|
+
verifyIdToken(token: string, nonce?: string, ctx?: import("@better-auth/core").GenericEndpointContext): Promise<boolean>;
|
|
259
219
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
260
220
|
getUserInfo(token: OAuth2Tokens & {
|
|
261
221
|
user?: {
|
|
@@ -281,12 +241,7 @@ declare const socialProviders: {
|
|
|
281
241
|
figma: (options: FigmaOptions) => {
|
|
282
242
|
id: "figma";
|
|
283
243
|
name: string;
|
|
284
|
-
createAuthorizationURL({
|
|
285
|
-
state,
|
|
286
|
-
scopes,
|
|
287
|
-
codeVerifier,
|
|
288
|
-
redirectURI
|
|
289
|
-
}: {
|
|
244
|
+
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
290
245
|
state: string;
|
|
291
246
|
codeVerifier: string;
|
|
292
247
|
scopes?: string[] | undefined;
|
|
@@ -294,11 +249,7 @@ declare const socialProviders: {
|
|
|
294
249
|
display?: string | undefined;
|
|
295
250
|
loginHint?: string | undefined;
|
|
296
251
|
}): Promise<URL>;
|
|
297
|
-
validateAuthorizationCode: ({
|
|
298
|
-
code,
|
|
299
|
-
codeVerifier,
|
|
300
|
-
redirectURI
|
|
301
|
-
}: {
|
|
252
|
+
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
302
253
|
code: string;
|
|
303
254
|
redirectURI: string;
|
|
304
255
|
codeVerifier?: string | undefined;
|
|
@@ -329,13 +280,7 @@ declare const socialProviders: {
|
|
|
329
280
|
github: (options: GithubOptions) => {
|
|
330
281
|
id: "github";
|
|
331
282
|
name: string;
|
|
332
|
-
createAuthorizationURL({
|
|
333
|
-
state,
|
|
334
|
-
scopes,
|
|
335
|
-
loginHint,
|
|
336
|
-
codeVerifier,
|
|
337
|
-
redirectURI
|
|
338
|
-
}: {
|
|
283
|
+
createAuthorizationURL({ state, scopes, loginHint, codeVerifier, redirectURI }: {
|
|
339
284
|
state: string;
|
|
340
285
|
codeVerifier: string;
|
|
341
286
|
scopes?: string[] | undefined;
|
|
@@ -343,11 +288,7 @@ declare const socialProviders: {
|
|
|
343
288
|
display?: string | undefined;
|
|
344
289
|
loginHint?: string | undefined;
|
|
345
290
|
}): Promise<URL>;
|
|
346
|
-
validateAuthorizationCode: ({
|
|
347
|
-
code,
|
|
348
|
-
codeVerifier,
|
|
349
|
-
redirectURI
|
|
350
|
-
}: {
|
|
291
|
+
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
351
292
|
code: string;
|
|
352
293
|
redirectURI: string;
|
|
353
294
|
codeVerifier?: string | undefined;
|
|
@@ -386,17 +327,13 @@ declare const socialProviders: {
|
|
|
386
327
|
display?: string | undefined;
|
|
387
328
|
loginHint?: string | undefined;
|
|
388
329
|
}): Promise<URL>;
|
|
389
|
-
validateAuthorizationCode({
|
|
390
|
-
code,
|
|
391
|
-
codeVerifier,
|
|
392
|
-
redirectURI
|
|
393
|
-
}: {
|
|
330
|
+
validateAuthorizationCode({ code, codeVerifier, redirectURI }: {
|
|
394
331
|
code: string;
|
|
395
332
|
redirectURI: string;
|
|
396
333
|
codeVerifier?: string | undefined;
|
|
397
334
|
deviceId?: string | undefined;
|
|
398
335
|
}): Promise<OAuth2Tokens>;
|
|
399
|
-
verifyIdToken(token: string, nonce
|
|
336
|
+
verifyIdToken(token: string, nonce?: string, ctx?: import("@better-auth/core").GenericEndpointContext): Promise<boolean>;
|
|
400
337
|
getUserInfo(token: OAuth2Tokens & {
|
|
401
338
|
user?: {
|
|
402
339
|
name?: {
|
|
@@ -422,14 +359,7 @@ declare const socialProviders: {
|
|
|
422
359
|
google: (options: GoogleOptions) => {
|
|
423
360
|
id: "google";
|
|
424
361
|
name: string;
|
|
425
|
-
createAuthorizationURL({
|
|
426
|
-
state,
|
|
427
|
-
scopes,
|
|
428
|
-
codeVerifier,
|
|
429
|
-
redirectURI,
|
|
430
|
-
loginHint,
|
|
431
|
-
display
|
|
432
|
-
}: {
|
|
362
|
+
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI, loginHint, display }: {
|
|
433
363
|
state: string;
|
|
434
364
|
codeVerifier: string;
|
|
435
365
|
scopes?: string[] | undefined;
|
|
@@ -437,18 +367,14 @@ declare const socialProviders: {
|
|
|
437
367
|
display?: string | undefined;
|
|
438
368
|
loginHint?: string | undefined;
|
|
439
369
|
}): Promise<URL>;
|
|
440
|
-
validateAuthorizationCode: ({
|
|
441
|
-
code,
|
|
442
|
-
codeVerifier,
|
|
443
|
-
redirectURI
|
|
444
|
-
}: {
|
|
370
|
+
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
445
371
|
code: string;
|
|
446
372
|
redirectURI: string;
|
|
447
373
|
codeVerifier?: string | undefined;
|
|
448
374
|
deviceId?: string | undefined;
|
|
449
375
|
}) => Promise<OAuth2Tokens>;
|
|
450
376
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
451
|
-
verifyIdToken(token: string, nonce
|
|
377
|
+
verifyIdToken(token: string, nonce?: string, ctx?: import("@better-auth/core").GenericEndpointContext): Promise<boolean>;
|
|
452
378
|
getUserInfo(token: OAuth2Tokens & {
|
|
453
379
|
user?: {
|
|
454
380
|
name?: {
|
|
@@ -473,12 +399,7 @@ declare const socialProviders: {
|
|
|
473
399
|
huggingface: (options: HuggingFaceOptions) => {
|
|
474
400
|
id: "huggingface";
|
|
475
401
|
name: string;
|
|
476
|
-
createAuthorizationURL({
|
|
477
|
-
state,
|
|
478
|
-
scopes,
|
|
479
|
-
codeVerifier,
|
|
480
|
-
redirectURI
|
|
481
|
-
}: {
|
|
402
|
+
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
482
403
|
state: string;
|
|
483
404
|
codeVerifier: string;
|
|
484
405
|
scopes?: string[] | undefined;
|
|
@@ -486,11 +407,7 @@ declare const socialProviders: {
|
|
|
486
407
|
display?: string | undefined;
|
|
487
408
|
loginHint?: string | undefined;
|
|
488
409
|
}): Promise<URL>;
|
|
489
|
-
validateAuthorizationCode: ({
|
|
490
|
-
code,
|
|
491
|
-
codeVerifier,
|
|
492
|
-
redirectURI
|
|
493
|
-
}: {
|
|
410
|
+
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
494
411
|
code: string;
|
|
495
412
|
redirectURI: string;
|
|
496
413
|
codeVerifier?: string | undefined;
|
|
@@ -521,11 +438,7 @@ declare const socialProviders: {
|
|
|
521
438
|
slack: (options: SlackOptions) => {
|
|
522
439
|
id: "slack";
|
|
523
440
|
name: string;
|
|
524
|
-
createAuthorizationURL({
|
|
525
|
-
state,
|
|
526
|
-
scopes,
|
|
527
|
-
redirectURI
|
|
528
|
-
}: {
|
|
441
|
+
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
529
442
|
state: string;
|
|
530
443
|
codeVerifier: string;
|
|
531
444
|
scopes?: string[] | undefined;
|
|
@@ -533,10 +446,7 @@ declare const socialProviders: {
|
|
|
533
446
|
display?: string | undefined;
|
|
534
447
|
loginHint?: string | undefined;
|
|
535
448
|
}): URL;
|
|
536
|
-
validateAuthorizationCode: ({
|
|
537
|
-
code,
|
|
538
|
-
redirectURI
|
|
539
|
-
}: {
|
|
449
|
+
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
540
450
|
code: string;
|
|
541
451
|
redirectURI: string;
|
|
542
452
|
codeVerifier?: string | undefined;
|
|
@@ -567,12 +477,7 @@ declare const socialProviders: {
|
|
|
567
477
|
spotify: (options: SpotifyOptions) => {
|
|
568
478
|
id: "spotify";
|
|
569
479
|
name: string;
|
|
570
|
-
createAuthorizationURL({
|
|
571
|
-
state,
|
|
572
|
-
scopes,
|
|
573
|
-
codeVerifier,
|
|
574
|
-
redirectURI
|
|
575
|
-
}: {
|
|
480
|
+
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
576
481
|
state: string;
|
|
577
482
|
codeVerifier: string;
|
|
578
483
|
scopes?: string[] | undefined;
|
|
@@ -580,11 +485,7 @@ declare const socialProviders: {
|
|
|
580
485
|
display?: string | undefined;
|
|
581
486
|
loginHint?: string | undefined;
|
|
582
487
|
}): Promise<URL>;
|
|
583
|
-
validateAuthorizationCode: ({
|
|
584
|
-
code,
|
|
585
|
-
codeVerifier,
|
|
586
|
-
redirectURI
|
|
587
|
-
}: {
|
|
488
|
+
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
588
489
|
code: string;
|
|
589
490
|
redirectURI: string;
|
|
590
491
|
codeVerifier?: string | undefined;
|
|
@@ -615,11 +516,7 @@ declare const socialProviders: {
|
|
|
615
516
|
twitch: (options: TwitchOptions) => {
|
|
616
517
|
id: "twitch";
|
|
617
518
|
name: string;
|
|
618
|
-
createAuthorizationURL({
|
|
619
|
-
state,
|
|
620
|
-
scopes,
|
|
621
|
-
redirectURI
|
|
622
|
-
}: {
|
|
519
|
+
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
623
520
|
state: string;
|
|
624
521
|
codeVerifier: string;
|
|
625
522
|
scopes?: string[] | undefined;
|
|
@@ -627,10 +524,7 @@ declare const socialProviders: {
|
|
|
627
524
|
display?: string | undefined;
|
|
628
525
|
loginHint?: string | undefined;
|
|
629
526
|
}): Promise<URL>;
|
|
630
|
-
validateAuthorizationCode: ({
|
|
631
|
-
code,
|
|
632
|
-
redirectURI
|
|
633
|
-
}: {
|
|
527
|
+
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
634
528
|
code: string;
|
|
635
529
|
redirectURI: string;
|
|
636
530
|
codeVerifier?: string | undefined;
|
|
@@ -669,11 +563,7 @@ declare const socialProviders: {
|
|
|
669
563
|
display?: string | undefined;
|
|
670
564
|
loginHint?: string | undefined;
|
|
671
565
|
}): Promise<URL>;
|
|
672
|
-
validateAuthorizationCode: ({
|
|
673
|
-
code,
|
|
674
|
-
codeVerifier,
|
|
675
|
-
redirectURI
|
|
676
|
-
}: {
|
|
566
|
+
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
677
567
|
code: string;
|
|
678
568
|
redirectURI: string;
|
|
679
569
|
codeVerifier?: string | undefined;
|
|
@@ -704,12 +594,7 @@ declare const socialProviders: {
|
|
|
704
594
|
dropbox: (options: DropboxOptions) => {
|
|
705
595
|
id: "dropbox";
|
|
706
596
|
name: string;
|
|
707
|
-
createAuthorizationURL: ({
|
|
708
|
-
state,
|
|
709
|
-
scopes,
|
|
710
|
-
codeVerifier,
|
|
711
|
-
redirectURI
|
|
712
|
-
}: {
|
|
597
|
+
createAuthorizationURL: ({ state, scopes, codeVerifier, redirectURI }: {
|
|
713
598
|
state: string;
|
|
714
599
|
codeVerifier: string;
|
|
715
600
|
scopes?: string[] | undefined;
|
|
@@ -717,11 +602,7 @@ declare const socialProviders: {
|
|
|
717
602
|
display?: string | undefined;
|
|
718
603
|
loginHint?: string | undefined;
|
|
719
604
|
}) => Promise<URL>;
|
|
720
|
-
validateAuthorizationCode: ({
|
|
721
|
-
code,
|
|
722
|
-
codeVerifier,
|
|
723
|
-
redirectURI
|
|
724
|
-
}: {
|
|
605
|
+
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
725
606
|
code: string;
|
|
726
607
|
redirectURI: string;
|
|
727
608
|
codeVerifier?: string | undefined;
|
|
@@ -752,12 +633,7 @@ declare const socialProviders: {
|
|
|
752
633
|
kick: (options: KickOptions) => {
|
|
753
634
|
id: "kick";
|
|
754
635
|
name: string;
|
|
755
|
-
createAuthorizationURL({
|
|
756
|
-
state,
|
|
757
|
-
scopes,
|
|
758
|
-
redirectURI,
|
|
759
|
-
codeVerifier
|
|
760
|
-
}: {
|
|
636
|
+
createAuthorizationURL({ state, scopes, redirectURI, codeVerifier }: {
|
|
761
637
|
state: string;
|
|
762
638
|
codeVerifier: string;
|
|
763
639
|
scopes?: string[] | undefined;
|
|
@@ -765,11 +641,7 @@ declare const socialProviders: {
|
|
|
765
641
|
display?: string | undefined;
|
|
766
642
|
loginHint?: string | undefined;
|
|
767
643
|
}): Promise<URL>;
|
|
768
|
-
validateAuthorizationCode({
|
|
769
|
-
code,
|
|
770
|
-
redirectURI,
|
|
771
|
-
codeVerifier
|
|
772
|
-
}: {
|
|
644
|
+
validateAuthorizationCode({ code, redirectURI, codeVerifier }: {
|
|
773
645
|
code: string;
|
|
774
646
|
redirectURI: string;
|
|
775
647
|
codeVerifier?: string | undefined;
|
|
@@ -800,12 +672,7 @@ declare const socialProviders: {
|
|
|
800
672
|
linear: (options: LinearOptions) => {
|
|
801
673
|
id: "linear";
|
|
802
674
|
name: string;
|
|
803
|
-
createAuthorizationURL({
|
|
804
|
-
state,
|
|
805
|
-
scopes,
|
|
806
|
-
loginHint,
|
|
807
|
-
redirectURI
|
|
808
|
-
}: {
|
|
675
|
+
createAuthorizationURL({ state, scopes, loginHint, redirectURI }: {
|
|
809
676
|
state: string;
|
|
810
677
|
codeVerifier: string;
|
|
811
678
|
scopes?: string[] | undefined;
|
|
@@ -813,10 +680,7 @@ declare const socialProviders: {
|
|
|
813
680
|
display?: string | undefined;
|
|
814
681
|
loginHint?: string | undefined;
|
|
815
682
|
}): Promise<URL>;
|
|
816
|
-
validateAuthorizationCode: ({
|
|
817
|
-
code,
|
|
818
|
-
redirectURI
|
|
819
|
-
}: {
|
|
683
|
+
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
820
684
|
code: string;
|
|
821
685
|
redirectURI: string;
|
|
822
686
|
codeVerifier?: string | undefined;
|
|
@@ -847,12 +711,7 @@ declare const socialProviders: {
|
|
|
847
711
|
linkedin: (options: LinkedInOptions) => {
|
|
848
712
|
id: "linkedin";
|
|
849
713
|
name: string;
|
|
850
|
-
createAuthorizationURL: ({
|
|
851
|
-
state,
|
|
852
|
-
scopes,
|
|
853
|
-
redirectURI,
|
|
854
|
-
loginHint
|
|
855
|
-
}: {
|
|
714
|
+
createAuthorizationURL: ({ state, scopes, redirectURI, loginHint }: {
|
|
856
715
|
state: string;
|
|
857
716
|
codeVerifier: string;
|
|
858
717
|
scopes?: string[] | undefined;
|
|
@@ -860,10 +719,7 @@ declare const socialProviders: {
|
|
|
860
719
|
display?: string | undefined;
|
|
861
720
|
loginHint?: string | undefined;
|
|
862
721
|
}) => Promise<URL>;
|
|
863
|
-
validateAuthorizationCode: ({
|
|
864
|
-
code,
|
|
865
|
-
redirectURI
|
|
866
|
-
}: {
|
|
722
|
+
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
867
723
|
code: string;
|
|
868
724
|
redirectURI: string;
|
|
869
725
|
codeVerifier?: string | undefined;
|
|
@@ -894,13 +750,7 @@ declare const socialProviders: {
|
|
|
894
750
|
gitlab: (options: GitlabOptions) => {
|
|
895
751
|
id: "gitlab";
|
|
896
752
|
name: string;
|
|
897
|
-
createAuthorizationURL: ({
|
|
898
|
-
state,
|
|
899
|
-
scopes,
|
|
900
|
-
codeVerifier,
|
|
901
|
-
loginHint,
|
|
902
|
-
redirectURI
|
|
903
|
-
}: {
|
|
753
|
+
createAuthorizationURL: ({ state, scopes, codeVerifier, loginHint, redirectURI }: {
|
|
904
754
|
state: string;
|
|
905
755
|
codeVerifier: string;
|
|
906
756
|
scopes?: string[] | undefined;
|
|
@@ -908,11 +758,7 @@ declare const socialProviders: {
|
|
|
908
758
|
display?: string | undefined;
|
|
909
759
|
loginHint?: string | undefined;
|
|
910
760
|
}) => Promise<URL>;
|
|
911
|
-
validateAuthorizationCode: ({
|
|
912
|
-
code,
|
|
913
|
-
redirectURI,
|
|
914
|
-
codeVerifier
|
|
915
|
-
}: {
|
|
761
|
+
validateAuthorizationCode: ({ code, redirectURI, codeVerifier }: {
|
|
916
762
|
code: string;
|
|
917
763
|
redirectURI: string;
|
|
918
764
|
codeVerifier?: string | undefined;
|
|
@@ -964,11 +810,7 @@ declare const socialProviders: {
|
|
|
964
810
|
tiktok: (options: TiktokOptions) => {
|
|
965
811
|
id: "tiktok";
|
|
966
812
|
name: string;
|
|
967
|
-
createAuthorizationURL({
|
|
968
|
-
state,
|
|
969
|
-
scopes,
|
|
970
|
-
redirectURI
|
|
971
|
-
}: {
|
|
813
|
+
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
972
814
|
state: string;
|
|
973
815
|
codeVerifier: string;
|
|
974
816
|
scopes?: string[] | undefined;
|
|
@@ -976,10 +818,7 @@ declare const socialProviders: {
|
|
|
976
818
|
display?: string | undefined;
|
|
977
819
|
loginHint?: string | undefined;
|
|
978
820
|
}): URL;
|
|
979
|
-
validateAuthorizationCode: ({
|
|
980
|
-
code,
|
|
981
|
-
redirectURI
|
|
982
|
-
}: {
|
|
821
|
+
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
983
822
|
code: string;
|
|
984
823
|
redirectURI: string;
|
|
985
824
|
codeVerifier?: string | undefined;
|
|
@@ -1010,11 +849,7 @@ declare const socialProviders: {
|
|
|
1010
849
|
reddit: (options: RedditOptions) => {
|
|
1011
850
|
id: "reddit";
|
|
1012
851
|
name: string;
|
|
1013
|
-
createAuthorizationURL({
|
|
1014
|
-
state,
|
|
1015
|
-
scopes,
|
|
1016
|
-
redirectURI
|
|
1017
|
-
}: {
|
|
852
|
+
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
1018
853
|
state: string;
|
|
1019
854
|
codeVerifier: string;
|
|
1020
855
|
scopes?: string[] | undefined;
|
|
@@ -1022,10 +857,7 @@ declare const socialProviders: {
|
|
|
1022
857
|
display?: string | undefined;
|
|
1023
858
|
loginHint?: string | undefined;
|
|
1024
859
|
}): Promise<URL>;
|
|
1025
|
-
validateAuthorizationCode: ({
|
|
1026
|
-
code,
|
|
1027
|
-
redirectURI
|
|
1028
|
-
}: {
|
|
860
|
+
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1029
861
|
code: string;
|
|
1030
862
|
redirectURI: string;
|
|
1031
863
|
codeVerifier?: string | undefined;
|
|
@@ -1056,11 +888,7 @@ declare const socialProviders: {
|
|
|
1056
888
|
roblox: (options: RobloxOptions) => {
|
|
1057
889
|
id: "roblox";
|
|
1058
890
|
name: string;
|
|
1059
|
-
createAuthorizationURL({
|
|
1060
|
-
state,
|
|
1061
|
-
scopes,
|
|
1062
|
-
redirectURI
|
|
1063
|
-
}: {
|
|
891
|
+
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
1064
892
|
state: string;
|
|
1065
893
|
codeVerifier: string;
|
|
1066
894
|
scopes?: string[] | undefined;
|
|
@@ -1068,10 +896,7 @@ declare const socialProviders: {
|
|
|
1068
896
|
display?: string | undefined;
|
|
1069
897
|
loginHint?: string | undefined;
|
|
1070
898
|
}): URL;
|
|
1071
|
-
validateAuthorizationCode: ({
|
|
1072
|
-
code,
|
|
1073
|
-
redirectURI
|
|
1074
|
-
}: {
|
|
899
|
+
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1075
900
|
code: string;
|
|
1076
901
|
redirectURI: string;
|
|
1077
902
|
codeVerifier?: string | undefined;
|
|
@@ -1102,12 +927,7 @@ declare const socialProviders: {
|
|
|
1102
927
|
salesforce: (options: SalesforceOptions) => {
|
|
1103
928
|
id: "salesforce";
|
|
1104
929
|
name: string;
|
|
1105
|
-
createAuthorizationURL({
|
|
1106
|
-
state,
|
|
1107
|
-
scopes,
|
|
1108
|
-
codeVerifier,
|
|
1109
|
-
redirectURI
|
|
1110
|
-
}: {
|
|
930
|
+
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
1111
931
|
state: string;
|
|
1112
932
|
codeVerifier: string;
|
|
1113
933
|
scopes?: string[] | undefined;
|
|
@@ -1115,11 +935,7 @@ declare const socialProviders: {
|
|
|
1115
935
|
display?: string | undefined;
|
|
1116
936
|
loginHint?: string | undefined;
|
|
1117
937
|
}): Promise<URL>;
|
|
1118
|
-
validateAuthorizationCode: ({
|
|
1119
|
-
code,
|
|
1120
|
-
codeVerifier,
|
|
1121
|
-
redirectURI
|
|
1122
|
-
}: {
|
|
938
|
+
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
1123
939
|
code: string;
|
|
1124
940
|
redirectURI: string;
|
|
1125
941
|
codeVerifier?: string | undefined;
|
|
@@ -1150,12 +966,7 @@ declare const socialProviders: {
|
|
|
1150
966
|
vk: (options: VkOption) => {
|
|
1151
967
|
id: "vk";
|
|
1152
968
|
name: string;
|
|
1153
|
-
createAuthorizationURL({
|
|
1154
|
-
state,
|
|
1155
|
-
scopes,
|
|
1156
|
-
codeVerifier,
|
|
1157
|
-
redirectURI
|
|
1158
|
-
}: {
|
|
969
|
+
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
1159
970
|
state: string;
|
|
1160
971
|
codeVerifier: string;
|
|
1161
972
|
scopes?: string[] | undefined;
|
|
@@ -1163,12 +974,7 @@ declare const socialProviders: {
|
|
|
1163
974
|
display?: string | undefined;
|
|
1164
975
|
loginHint?: string | undefined;
|
|
1165
976
|
}): Promise<URL>;
|
|
1166
|
-
validateAuthorizationCode: ({
|
|
1167
|
-
code,
|
|
1168
|
-
codeVerifier,
|
|
1169
|
-
redirectURI,
|
|
1170
|
-
deviceId
|
|
1171
|
-
}: {
|
|
977
|
+
validateAuthorizationCode: ({ code, codeVerifier, redirectURI, deviceId }: {
|
|
1172
978
|
code: string;
|
|
1173
979
|
redirectURI: string;
|
|
1174
980
|
codeVerifier?: string | undefined;
|
|
@@ -1199,11 +1005,7 @@ declare const socialProviders: {
|
|
|
1199
1005
|
zoom: (userOptions: ZoomOptions) => {
|
|
1200
1006
|
id: "zoom";
|
|
1201
1007
|
name: string;
|
|
1202
|
-
createAuthorizationURL: ({
|
|
1203
|
-
state,
|
|
1204
|
-
redirectURI,
|
|
1205
|
-
codeVerifier
|
|
1206
|
-
}: {
|
|
1008
|
+
createAuthorizationURL: ({ state, redirectURI, codeVerifier }: {
|
|
1207
1009
|
state: string;
|
|
1208
1010
|
codeVerifier: string;
|
|
1209
1011
|
scopes?: string[] | undefined;
|
|
@@ -1211,11 +1013,7 @@ declare const socialProviders: {
|
|
|
1211
1013
|
display?: string | undefined;
|
|
1212
1014
|
loginHint?: string | undefined;
|
|
1213
1015
|
}) => Promise<URL>;
|
|
1214
|
-
validateAuthorizationCode: ({
|
|
1215
|
-
code,
|
|
1216
|
-
redirectURI,
|
|
1217
|
-
codeVerifier
|
|
1218
|
-
}: {
|
|
1016
|
+
validateAuthorizationCode: ({ code, redirectURI, codeVerifier }: {
|
|
1219
1017
|
code: string;
|
|
1220
1018
|
redirectURI: string;
|
|
1221
1019
|
codeVerifier?: string | undefined;
|
|
@@ -1245,12 +1043,7 @@ declare const socialProviders: {
|
|
|
1245
1043
|
notion: (options: NotionOptions) => {
|
|
1246
1044
|
id: "notion";
|
|
1247
1045
|
name: string;
|
|
1248
|
-
createAuthorizationURL({
|
|
1249
|
-
state,
|
|
1250
|
-
scopes,
|
|
1251
|
-
loginHint,
|
|
1252
|
-
redirectURI
|
|
1253
|
-
}: {
|
|
1046
|
+
createAuthorizationURL({ state, scopes, loginHint, redirectURI }: {
|
|
1254
1047
|
state: string;
|
|
1255
1048
|
codeVerifier: string;
|
|
1256
1049
|
scopes?: string[] | undefined;
|
|
@@ -1258,10 +1051,7 @@ declare const socialProviders: {
|
|
|
1258
1051
|
display?: string | undefined;
|
|
1259
1052
|
loginHint?: string | undefined;
|
|
1260
1053
|
}): Promise<URL>;
|
|
1261
|
-
validateAuthorizationCode: ({
|
|
1262
|
-
code,
|
|
1263
|
-
redirectURI
|
|
1264
|
-
}: {
|
|
1054
|
+
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1265
1055
|
code: string;
|
|
1266
1056
|
redirectURI: string;
|
|
1267
1057
|
codeVerifier?: string | undefined;
|
|
@@ -1292,11 +1082,7 @@ declare const socialProviders: {
|
|
|
1292
1082
|
kakao: (options: KakaoOptions) => {
|
|
1293
1083
|
id: "kakao";
|
|
1294
1084
|
name: string;
|
|
1295
|
-
createAuthorizationURL({
|
|
1296
|
-
state,
|
|
1297
|
-
scopes,
|
|
1298
|
-
redirectURI
|
|
1299
|
-
}: {
|
|
1085
|
+
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
1300
1086
|
state: string;
|
|
1301
1087
|
codeVerifier: string;
|
|
1302
1088
|
scopes?: string[] | undefined;
|
|
@@ -1304,10 +1090,7 @@ declare const socialProviders: {
|
|
|
1304
1090
|
display?: string | undefined;
|
|
1305
1091
|
loginHint?: string | undefined;
|
|
1306
1092
|
}): Promise<URL>;
|
|
1307
|
-
validateAuthorizationCode: ({
|
|
1308
|
-
code,
|
|
1309
|
-
redirectURI
|
|
1310
|
-
}: {
|
|
1093
|
+
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1311
1094
|
code: string;
|
|
1312
1095
|
redirectURI: string;
|
|
1313
1096
|
codeVerifier?: string | undefined;
|
|
@@ -1359,11 +1142,7 @@ declare const socialProviders: {
|
|
|
1359
1142
|
naver: (options: NaverOptions) => {
|
|
1360
1143
|
id: "naver";
|
|
1361
1144
|
name: string;
|
|
1362
|
-
createAuthorizationURL({
|
|
1363
|
-
state,
|
|
1364
|
-
scopes,
|
|
1365
|
-
redirectURI
|
|
1366
|
-
}: {
|
|
1145
|
+
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
1367
1146
|
state: string;
|
|
1368
1147
|
codeVerifier: string;
|
|
1369
1148
|
scopes?: string[] | undefined;
|
|
@@ -1371,10 +1150,7 @@ declare const socialProviders: {
|
|
|
1371
1150
|
display?: string | undefined;
|
|
1372
1151
|
loginHint?: string | undefined;
|
|
1373
1152
|
}): Promise<URL>;
|
|
1374
|
-
validateAuthorizationCode: ({
|
|
1375
|
-
code,
|
|
1376
|
-
redirectURI
|
|
1377
|
-
}: {
|
|
1153
|
+
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1378
1154
|
code: string;
|
|
1379
1155
|
redirectURI: string;
|
|
1380
1156
|
codeVerifier?: string | undefined;
|
|
@@ -1426,13 +1202,7 @@ declare const socialProviders: {
|
|
|
1426
1202
|
line: (options: LineOptions) => {
|
|
1427
1203
|
id: "line";
|
|
1428
1204
|
name: string;
|
|
1429
|
-
createAuthorizationURL({
|
|
1430
|
-
state,
|
|
1431
|
-
scopes,
|
|
1432
|
-
codeVerifier,
|
|
1433
|
-
redirectURI,
|
|
1434
|
-
loginHint
|
|
1435
|
-
}: {
|
|
1205
|
+
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI, loginHint }: {
|
|
1436
1206
|
state: string;
|
|
1437
1207
|
codeVerifier: string;
|
|
1438
1208
|
scopes?: string[] | undefined;
|
|
@@ -1440,18 +1210,14 @@ declare const socialProviders: {
|
|
|
1440
1210
|
display?: string | undefined;
|
|
1441
1211
|
loginHint?: string | undefined;
|
|
1442
1212
|
}): Promise<URL>;
|
|
1443
|
-
validateAuthorizationCode: ({
|
|
1444
|
-
code,
|
|
1445
|
-
codeVerifier,
|
|
1446
|
-
redirectURI
|
|
1447
|
-
}: {
|
|
1213
|
+
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
1448
1214
|
code: string;
|
|
1449
1215
|
redirectURI: string;
|
|
1450
1216
|
codeVerifier?: string | undefined;
|
|
1451
1217
|
deviceId?: string | undefined;
|
|
1452
1218
|
}) => Promise<OAuth2Tokens>;
|
|
1453
1219
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
1454
|
-
verifyIdToken(token: string, nonce
|
|
1220
|
+
verifyIdToken(token: string, nonce?: string, ctx?: import("@better-auth/core").GenericEndpointContext): Promise<boolean>;
|
|
1455
1221
|
getUserInfo(token: OAuth2Tokens & {
|
|
1456
1222
|
user?: {
|
|
1457
1223
|
name?: {
|
|
@@ -1497,13 +1263,7 @@ declare const socialProviders: {
|
|
|
1497
1263
|
paybin: (options: PaybinOptions) => {
|
|
1498
1264
|
id: "paybin";
|
|
1499
1265
|
name: string;
|
|
1500
|
-
createAuthorizationURL({
|
|
1501
|
-
state,
|
|
1502
|
-
scopes,
|
|
1503
|
-
codeVerifier,
|
|
1504
|
-
redirectURI,
|
|
1505
|
-
loginHint
|
|
1506
|
-
}: {
|
|
1266
|
+
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI, loginHint }: {
|
|
1507
1267
|
state: string;
|
|
1508
1268
|
codeVerifier: string;
|
|
1509
1269
|
scopes?: string[] | undefined;
|
|
@@ -1511,11 +1271,7 @@ declare const socialProviders: {
|
|
|
1511
1271
|
display?: string | undefined;
|
|
1512
1272
|
loginHint?: string | undefined;
|
|
1513
1273
|
}): Promise<URL>;
|
|
1514
|
-
validateAuthorizationCode: ({
|
|
1515
|
-
code,
|
|
1516
|
-
codeVerifier,
|
|
1517
|
-
redirectURI
|
|
1518
|
-
}: {
|
|
1274
|
+
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
1519
1275
|
code: string;
|
|
1520
1276
|
redirectURI: string;
|
|
1521
1277
|
codeVerifier?: string | undefined;
|
|
@@ -1546,11 +1302,7 @@ declare const socialProviders: {
|
|
|
1546
1302
|
paypal: (options: PayPalOptions) => {
|
|
1547
1303
|
id: "paypal";
|
|
1548
1304
|
name: string;
|
|
1549
|
-
createAuthorizationURL({
|
|
1550
|
-
state,
|
|
1551
|
-
codeVerifier,
|
|
1552
|
-
redirectURI
|
|
1553
|
-
}: {
|
|
1305
|
+
createAuthorizationURL({ state, codeVerifier, redirectURI }: {
|
|
1554
1306
|
state: string;
|
|
1555
1307
|
codeVerifier: string;
|
|
1556
1308
|
scopes?: string[] | undefined;
|
|
@@ -1558,10 +1310,7 @@ declare const socialProviders: {
|
|
|
1558
1310
|
display?: string | undefined;
|
|
1559
1311
|
loginHint?: string | undefined;
|
|
1560
1312
|
}): Promise<URL>;
|
|
1561
|
-
validateAuthorizationCode: ({
|
|
1562
|
-
code,
|
|
1563
|
-
redirectURI
|
|
1564
|
-
}: {
|
|
1313
|
+
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1565
1314
|
code: string;
|
|
1566
1315
|
redirectURI: string;
|
|
1567
1316
|
codeVerifier?: string | undefined;
|
|
@@ -1577,7 +1326,7 @@ declare const socialProviders: {
|
|
|
1577
1326
|
refreshToken: any;
|
|
1578
1327
|
accessTokenExpiresAt: Date | undefined;
|
|
1579
1328
|
}>);
|
|
1580
|
-
verifyIdToken(token: string, nonce
|
|
1329
|
+
verifyIdToken(token: string, nonce?: string, ctx?: import("@better-auth/core").GenericEndpointContext): Promise<boolean>;
|
|
1581
1330
|
getUserInfo(token: OAuth2Tokens & {
|
|
1582
1331
|
user?: {
|
|
1583
1332
|
name?: {
|
|
@@ -1623,12 +1372,7 @@ declare const socialProviders: {
|
|
|
1623
1372
|
polar: (options: PolarOptions) => {
|
|
1624
1373
|
id: "polar";
|
|
1625
1374
|
name: string;
|
|
1626
|
-
createAuthorizationURL({
|
|
1627
|
-
state,
|
|
1628
|
-
scopes,
|
|
1629
|
-
codeVerifier,
|
|
1630
|
-
redirectURI
|
|
1631
|
-
}: {
|
|
1375
|
+
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
1632
1376
|
state: string;
|
|
1633
1377
|
codeVerifier: string;
|
|
1634
1378
|
scopes?: string[] | undefined;
|
|
@@ -1636,11 +1380,7 @@ declare const socialProviders: {
|
|
|
1636
1380
|
display?: string | undefined;
|
|
1637
1381
|
loginHint?: string | undefined;
|
|
1638
1382
|
}): Promise<URL>;
|
|
1639
|
-
validateAuthorizationCode: ({
|
|
1640
|
-
code,
|
|
1641
|
-
codeVerifier,
|
|
1642
|
-
redirectURI
|
|
1643
|
-
}: {
|
|
1383
|
+
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
1644
1384
|
code: string;
|
|
1645
1385
|
redirectURI: string;
|
|
1646
1386
|
codeVerifier?: string | undefined;
|
|
@@ -1671,12 +1411,7 @@ declare const socialProviders: {
|
|
|
1671
1411
|
railway: (options: RailwayOptions) => {
|
|
1672
1412
|
id: "railway";
|
|
1673
1413
|
name: string;
|
|
1674
|
-
createAuthorizationURL({
|
|
1675
|
-
state,
|
|
1676
|
-
scopes,
|
|
1677
|
-
codeVerifier,
|
|
1678
|
-
redirectURI
|
|
1679
|
-
}: {
|
|
1414
|
+
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
1680
1415
|
state: string;
|
|
1681
1416
|
codeVerifier: string;
|
|
1682
1417
|
scopes?: string[] | undefined;
|
|
@@ -1684,11 +1419,7 @@ declare const socialProviders: {
|
|
|
1684
1419
|
display?: string | undefined;
|
|
1685
1420
|
loginHint?: string | undefined;
|
|
1686
1421
|
}): Promise<URL>;
|
|
1687
|
-
validateAuthorizationCode: ({
|
|
1688
|
-
code,
|
|
1689
|
-
codeVerifier,
|
|
1690
|
-
redirectURI
|
|
1691
|
-
}: {
|
|
1422
|
+
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
1692
1423
|
code: string;
|
|
1693
1424
|
redirectURI: string;
|
|
1694
1425
|
codeVerifier?: string | undefined;
|
|
@@ -1719,12 +1450,7 @@ declare const socialProviders: {
|
|
|
1719
1450
|
vercel: (options: VercelOptions) => {
|
|
1720
1451
|
id: "vercel";
|
|
1721
1452
|
name: string;
|
|
1722
|
-
createAuthorizationURL({
|
|
1723
|
-
state,
|
|
1724
|
-
scopes,
|
|
1725
|
-
codeVerifier,
|
|
1726
|
-
redirectURI
|
|
1727
|
-
}: {
|
|
1453
|
+
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
1728
1454
|
state: string;
|
|
1729
1455
|
codeVerifier: string;
|
|
1730
1456
|
scopes?: string[] | undefined;
|
|
@@ -1732,11 +1458,7 @@ declare const socialProviders: {
|
|
|
1732
1458
|
display?: string | undefined;
|
|
1733
1459
|
loginHint?: string | undefined;
|
|
1734
1460
|
}): Promise<URL>;
|
|
1735
|
-
validateAuthorizationCode: ({
|
|
1736
|
-
code,
|
|
1737
|
-
codeVerifier,
|
|
1738
|
-
redirectURI
|
|
1739
|
-
}: {
|
|
1461
|
+
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
1740
1462
|
code: string;
|
|
1741
1463
|
redirectURI: string;
|
|
1742
1464
|
codeVerifier?: string | undefined;
|
|
@@ -1766,11 +1488,7 @@ declare const socialProviders: {
|
|
|
1766
1488
|
wechat: (options: WeChatOptions) => {
|
|
1767
1489
|
id: "wechat";
|
|
1768
1490
|
name: string;
|
|
1769
|
-
createAuthorizationURL({
|
|
1770
|
-
state,
|
|
1771
|
-
scopes,
|
|
1772
|
-
redirectURI
|
|
1773
|
-
}: {
|
|
1491
|
+
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
1774
1492
|
state: string;
|
|
1775
1493
|
codeVerifier: string;
|
|
1776
1494
|
scopes?: string[] | undefined;
|
|
@@ -1778,9 +1496,7 @@ declare const socialProviders: {
|
|
|
1778
1496
|
display?: string | undefined;
|
|
1779
1497
|
loginHint?: string | undefined;
|
|
1780
1498
|
}): URL;
|
|
1781
|
-
validateAuthorizationCode: ({
|
|
1782
|
-
code
|
|
1783
|
-
}: {
|
|
1499
|
+
validateAuthorizationCode: ({ code }: {
|
|
1784
1500
|
code: string;
|
|
1785
1501
|
redirectURI: string;
|
|
1786
1502
|
codeVerifier?: string | undefined;
|
|
@@ -1828,7 +1544,7 @@ declare const SocialProviderListEnum: z.ZodType<SocialProviderList[number] | (st
|
|
|
1828
1544
|
type SocialProvider = z.infer<typeof SocialProviderListEnum>;
|
|
1829
1545
|
type SocialProviders = { [K in SocialProviderList[number]]?: AwaitableFunction<Parameters<(typeof socialProviders)[K]>[0] & {
|
|
1830
1546
|
enabled?: boolean | undefined;
|
|
1831
|
-
}
|
|
1547
|
+
}>; };
|
|
1832
1548
|
type SocialProviderList = typeof socialProviderList;
|
|
1833
1549
|
//#endregion
|
|
1834
1550
|
export { AccountStatus, AppleNonConformUser, AppleOptions, AppleProfile, AtlassianOptions, AtlassianProfile, CognitoOptions, CognitoProfile, DiscordOptions, DiscordProfile, DropboxOptions, DropboxProfile, 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, getPayPalPublicKey, 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 };
|