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