better-auth 0.8.7-beta.5 → 0.8.7
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/adapters/drizzle.d.cts +1 -1
- package/dist/adapters/drizzle.d.ts +1 -1
- package/dist/adapters/kysely.d.cts +1 -1
- package/dist/adapters/kysely.d.ts +1 -1
- package/dist/adapters/memory.d.cts +1 -1
- package/dist/adapters/memory.d.ts +1 -1
- package/dist/adapters/mongodb.d.cts +1 -1
- package/dist/adapters/mongodb.d.ts +1 -1
- package/dist/adapters/prisma.d.cts +1 -1
- package/dist/adapters/prisma.d.ts +1 -1
- package/dist/api.d.cts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/{auth-DUjJdNoZ.d.cts → auth-DttxYSGj.d.cts} +52 -52
- package/dist/{auth-C0rgfDdu.d.ts → auth-l6y6TFbp.d.ts} +52 -52
- package/dist/client/plugins.d.cts +3 -3
- package/dist/client/plugins.d.ts +3 -3
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/cookies.d.cts +1 -1
- package/dist/cookies.d.ts +1 -1
- package/dist/db.cjs +1 -1
- package/dist/db.d.cts +2 -2
- package/dist/db.d.ts +2 -2
- package/dist/db.js +1 -1
- package/dist/{index-YXx6CnTz.d.cts → index-BBFo-3lz.d.cts} +1 -1
- package/dist/{index-DtM1rOVY.d.ts → index-DOeyi8Nc.d.ts} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/next-js.d.cts +1 -1
- package/dist/next-js.d.ts +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/oauth2.d.cts +2 -2
- package/dist/oauth2.d.ts +2 -2
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.d.cts +3 -3
- package/dist/plugins.d.ts +3 -3
- package/dist/plugins.js +2 -2
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/solid-start.d.cts +1 -1
- package/dist/solid-start.d.ts +1 -1
- package/dist/solid.d.cts +1 -1
- package/dist/solid.d.ts +1 -1
- package/dist/{state-Cx9_hEIA.d.ts → state-CwmlAD7M.d.ts} +1 -1
- package/dist/{state-CkRu-dbd.d.cts → state-GWdMMjvU.d.cts} +1 -1
- package/dist/svelte-kit.d.cts +1 -1
- package/dist/svelte-kit.d.ts +1 -1
- package/dist/svelte.d.cts +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/types.d.cts +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/vue.d.cts +1 -1
- package/dist/vue.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-DttxYSGj.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../helper-DrEEwdyQ.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-l6y6TFbp.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../helper-DrEEwdyQ.js';
|
package/dist/api.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { M as AuthEndpoint, N as AuthMiddleware, aa as callbackOAuth, at as changeEmail, aq as changePassword, J as createAuthEndpoint, F as createAuthMiddleware, am as createEmailVerificationToken, as as deleteUser, au as error, aj as forgetPassword, ak as forgetPasswordCallback, a6 as getEndpoints, ab as getSession, ac as getSessionFromCtx, ay as linkSocialAccount, ae as listSessions, ax as listUserAccounts, av as ok, D as optionsMiddleware, az as originCheckMiddleware, al as resetPassword, ah as revokeOtherSessions, af as revokeSession, ag as revokeSessions, a7 as router, an as sendVerificationEmail, ad as sessionMiddleware, ar as setPassword, a9 as signInEmail, a8 as signInSocial, ai as signOut, aw as signUpEmail, ap as updateUser, ao as verifyEmail } from './auth-
|
|
1
|
+
export { M as AuthEndpoint, N as AuthMiddleware, aa as callbackOAuth, at as changeEmail, aq as changePassword, J as createAuthEndpoint, F as createAuthMiddleware, am as createEmailVerificationToken, as as deleteUser, au as error, aj as forgetPassword, ak as forgetPasswordCallback, a6 as getEndpoints, ab as getSession, ac as getSessionFromCtx, ay as linkSocialAccount, ae as listSessions, ax as listUserAccounts, av as ok, D as optionsMiddleware, az as originCheckMiddleware, al as resetPassword, ah as revokeOtherSessions, af as revokeSession, ag as revokeSessions, a7 as router, an as sendVerificationEmail, ad as sessionMiddleware, ar as setPassword, a9 as signInEmail, a8 as signInSocial, ai as signOut, aw as signUpEmail, ap as updateUser, ao as verifyEmail } from './auth-DttxYSGj.cjs';
|
|
2
2
|
import './helper-DrEEwdyQ.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { M as AuthEndpoint, N as AuthMiddleware, aa as callbackOAuth, at as changeEmail, aq as changePassword, J as createAuthEndpoint, F as createAuthMiddleware, am as createEmailVerificationToken, as as deleteUser, au as error, aj as forgetPassword, ak as forgetPasswordCallback, a6 as getEndpoints, ab as getSession, ac as getSessionFromCtx, ay as linkSocialAccount, ae as listSessions, ax as listUserAccounts, av as ok, D as optionsMiddleware, az as originCheckMiddleware, al as resetPassword, ah as revokeOtherSessions, af as revokeSession, ag as revokeSessions, a7 as router, an as sendVerificationEmail, ad as sessionMiddleware, ar as setPassword, a9 as signInEmail, a8 as signInSocial, ai as signOut, aw as signUpEmail, ap as updateUser, ao as verifyEmail } from './auth-
|
|
1
|
+
export { M as AuthEndpoint, N as AuthMiddleware, aa as callbackOAuth, at as changeEmail, aq as changePassword, J as createAuthEndpoint, F as createAuthMiddleware, am as createEmailVerificationToken, as as deleteUser, au as error, aj as forgetPassword, ak as forgetPasswordCallback, a6 as getEndpoints, ab as getSession, ac as getSessionFromCtx, ay as linkSocialAccount, ae as listSessions, ax as listUserAccounts, av as ok, D as optionsMiddleware, az as originCheckMiddleware, al as resetPassword, ah as revokeOtherSessions, af as revokeSession, ag as revokeSessions, a7 as router, an as sendVerificationEmail, ad as sessionMiddleware, ar as setPassword, a9 as signInEmail, a8 as signInSocial, ai as signOut, aw as signUpEmail, ap as updateUser, ao as verifyEmail } from './auth-l6y6TFbp.js';
|
|
2
2
|
import './helper-DrEEwdyQ.js';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
@@ -285,14 +285,14 @@ type FieldAttribute<T extends FieldType = FieldType> = {
|
|
|
285
285
|
type: T;
|
|
286
286
|
} & FieldAttributeConfig<T>;
|
|
287
287
|
declare const createFieldAttribute: <T extends FieldType, C extends Omit<FieldAttributeConfig<T>, "type">>(type: T, config?: C) => {
|
|
288
|
-
required?: boolean;
|
|
289
|
-
returned?: boolean;
|
|
290
|
-
input?: boolean;
|
|
291
|
-
defaultValue?: Primitive | (() => Primitive);
|
|
292
288
|
transform?: {
|
|
293
289
|
input?: ((value: InferValueType<T>) => Primitive | Promise<Primitive>) | undefined;
|
|
294
290
|
output?: ((value: Primitive) => InferValueType<T> | Promise<InferValueType<T>>) | undefined;
|
|
295
291
|
} | undefined;
|
|
292
|
+
required?: boolean;
|
|
293
|
+
returned?: boolean;
|
|
294
|
+
input?: boolean;
|
|
295
|
+
defaultValue?: Primitive | (() => Primitive);
|
|
296
296
|
references?: {
|
|
297
297
|
/**
|
|
298
298
|
* The model to reference.
|
|
@@ -1538,7 +1538,7 @@ declare const signInSocial: {
|
|
|
1538
1538
|
/**
|
|
1539
1539
|
* OAuth2 provider to use`
|
|
1540
1540
|
*/
|
|
1541
|
-
provider: z.ZodEnum<["github", ...("
|
|
1541
|
+
provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
|
|
1542
1542
|
/**
|
|
1543
1543
|
* Disable automatic redirection to the provider
|
|
1544
1544
|
*
|
|
@@ -1592,7 +1592,7 @@ declare const signInSocial: {
|
|
|
1592
1592
|
nonce?: string | undefined;
|
|
1593
1593
|
}>>;
|
|
1594
1594
|
}, "strip", z.ZodTypeAny, {
|
|
1595
|
-
provider: "
|
|
1595
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
1596
1596
|
idToken?: {
|
|
1597
1597
|
token: string;
|
|
1598
1598
|
accessToken?: string | undefined;
|
|
@@ -1604,7 +1604,7 @@ declare const signInSocial: {
|
|
|
1604
1604
|
errorCallbackURL?: string | undefined;
|
|
1605
1605
|
disableRedirect?: boolean | undefined;
|
|
1606
1606
|
}, {
|
|
1607
|
-
provider: "
|
|
1607
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
1608
1608
|
idToken?: {
|
|
1609
1609
|
token: string;
|
|
1610
1610
|
accessToken?: string | undefined;
|
|
@@ -1652,7 +1652,7 @@ declare const signInSocial: {
|
|
|
1652
1652
|
/**
|
|
1653
1653
|
* OAuth2 provider to use`
|
|
1654
1654
|
*/
|
|
1655
|
-
provider: z.ZodEnum<["github", ...("
|
|
1655
|
+
provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
|
|
1656
1656
|
/**
|
|
1657
1657
|
* Disable automatic redirection to the provider
|
|
1658
1658
|
*
|
|
@@ -1706,7 +1706,7 @@ declare const signInSocial: {
|
|
|
1706
1706
|
nonce?: string | undefined;
|
|
1707
1707
|
}>>;
|
|
1708
1708
|
}, "strip", z.ZodTypeAny, {
|
|
1709
|
-
provider: "
|
|
1709
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
1710
1710
|
idToken?: {
|
|
1711
1711
|
token: string;
|
|
1712
1712
|
accessToken?: string | undefined;
|
|
@@ -1718,7 +1718,7 @@ declare const signInSocial: {
|
|
|
1718
1718
|
errorCallbackURL?: string | undefined;
|
|
1719
1719
|
disableRedirect?: boolean | undefined;
|
|
1720
1720
|
}, {
|
|
1721
|
-
provider: "
|
|
1721
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
1722
1722
|
idToken?: {
|
|
1723
1723
|
token: string;
|
|
1724
1724
|
accessToken?: string | undefined;
|
|
@@ -3136,12 +3136,12 @@ declare const linkSocialAccount: {
|
|
|
3136
3136
|
/**
|
|
3137
3137
|
* OAuth2 provider to use`
|
|
3138
3138
|
*/
|
|
3139
|
-
provider: z.ZodEnum<["github", ...("
|
|
3139
|
+
provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
|
|
3140
3140
|
}, "strip", z.ZodTypeAny, {
|
|
3141
|
-
provider: "
|
|
3141
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
3142
3142
|
callbackURL?: string | undefined;
|
|
3143
3143
|
}, {
|
|
3144
|
-
provider: "
|
|
3144
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
3145
3145
|
callbackURL?: string | undefined;
|
|
3146
3146
|
}>;
|
|
3147
3147
|
use: better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
|
|
@@ -3193,12 +3193,12 @@ declare const linkSocialAccount: {
|
|
|
3193
3193
|
/**
|
|
3194
3194
|
* OAuth2 provider to use`
|
|
3195
3195
|
*/
|
|
3196
|
-
provider: z.ZodEnum<["github", ...("
|
|
3196
|
+
provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
|
|
3197
3197
|
}, "strip", z.ZodTypeAny, {
|
|
3198
|
-
provider: "
|
|
3198
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
3199
3199
|
callbackURL?: string | undefined;
|
|
3200
3200
|
}, {
|
|
3201
|
-
provider: "
|
|
3201
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
3202
3202
|
callbackURL?: string | undefined;
|
|
3203
3203
|
}>;
|
|
3204
3204
|
use: better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
|
|
@@ -3286,7 +3286,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
3286
3286
|
body: zod.ZodObject<{
|
|
3287
3287
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3288
3288
|
errorCallbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3289
|
-
provider: zod.ZodEnum<["github", ...("
|
|
3289
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
|
|
3290
3290
|
disableRedirect: zod.ZodOptional<zod.ZodBoolean>;
|
|
3291
3291
|
idToken: zod.ZodOptional<zod.ZodObject<{
|
|
3292
3292
|
token: zod.ZodString;
|
|
@@ -3308,7 +3308,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
3308
3308
|
nonce?: string | undefined;
|
|
3309
3309
|
}>>;
|
|
3310
3310
|
}, "strip", zod.ZodTypeAny, {
|
|
3311
|
-
provider: "
|
|
3311
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
3312
3312
|
idToken?: {
|
|
3313
3313
|
token: string;
|
|
3314
3314
|
accessToken?: string | undefined;
|
|
@@ -3320,7 +3320,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
3320
3320
|
errorCallbackURL?: string | undefined;
|
|
3321
3321
|
disableRedirect?: boolean | undefined;
|
|
3322
3322
|
}, {
|
|
3323
|
-
provider: "
|
|
3323
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
3324
3324
|
idToken?: {
|
|
3325
3325
|
token: string;
|
|
3326
3326
|
accessToken?: string | undefined;
|
|
@@ -3351,7 +3351,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
3351
3351
|
body: zod.ZodObject<{
|
|
3352
3352
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3353
3353
|
errorCallbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3354
|
-
provider: zod.ZodEnum<["github", ...("
|
|
3354
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
|
|
3355
3355
|
disableRedirect: zod.ZodOptional<zod.ZodBoolean>;
|
|
3356
3356
|
idToken: zod.ZodOptional<zod.ZodObject<{
|
|
3357
3357
|
token: zod.ZodString;
|
|
@@ -3373,7 +3373,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
3373
3373
|
nonce?: string | undefined;
|
|
3374
3374
|
}>>;
|
|
3375
3375
|
}, "strip", zod.ZodTypeAny, {
|
|
3376
|
-
provider: "
|
|
3376
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
3377
3377
|
idToken?: {
|
|
3378
3378
|
token: string;
|
|
3379
3379
|
accessToken?: string | undefined;
|
|
@@ -3385,7 +3385,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
3385
3385
|
errorCallbackURL?: string | undefined;
|
|
3386
3386
|
disableRedirect?: boolean | undefined;
|
|
3387
3387
|
}, {
|
|
3388
|
-
provider: "
|
|
3388
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
3389
3389
|
idToken?: {
|
|
3390
3390
|
token: string;
|
|
3391
3391
|
accessToken?: string | undefined;
|
|
@@ -4661,12 +4661,12 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
4661
4661
|
}>>;
|
|
4662
4662
|
body: zod.ZodObject<{
|
|
4663
4663
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4664
|
-
provider: zod.ZodEnum<["github", ...("
|
|
4664
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
|
|
4665
4665
|
}, "strip", zod.ZodTypeAny, {
|
|
4666
|
-
provider: "
|
|
4666
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
4667
4667
|
callbackURL?: string | undefined;
|
|
4668
4668
|
}, {
|
|
4669
|
-
provider: "
|
|
4669
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
4670
4670
|
callbackURL?: string | undefined;
|
|
4671
4671
|
}>;
|
|
4672
4672
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
|
|
@@ -4708,12 +4708,12 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
4708
4708
|
}>>;
|
|
4709
4709
|
body: zod.ZodObject<{
|
|
4710
4710
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4711
|
-
provider: zod.ZodEnum<["github", ...("
|
|
4711
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
|
|
4712
4712
|
}, "strip", zod.ZodTypeAny, {
|
|
4713
|
-
provider: "
|
|
4713
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
4714
4714
|
callbackURL?: string | undefined;
|
|
4715
4715
|
}, {
|
|
4716
|
-
provider: "
|
|
4716
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
4717
4717
|
callbackURL?: string | undefined;
|
|
4718
4718
|
}>;
|
|
4719
4719
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
|
|
@@ -4860,7 +4860,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
4860
4860
|
body: zod.ZodObject<{
|
|
4861
4861
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4862
4862
|
errorCallbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4863
|
-
provider: zod.ZodEnum<["github", ...("
|
|
4863
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
|
|
4864
4864
|
disableRedirect: zod.ZodOptional<zod.ZodBoolean>;
|
|
4865
4865
|
idToken: zod.ZodOptional<zod.ZodObject<{
|
|
4866
4866
|
token: zod.ZodString;
|
|
@@ -4882,7 +4882,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
4882
4882
|
nonce?: string | undefined;
|
|
4883
4883
|
}>>;
|
|
4884
4884
|
}, "strip", zod.ZodTypeAny, {
|
|
4885
|
-
provider: "
|
|
4885
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
4886
4886
|
idToken?: {
|
|
4887
4887
|
token: string;
|
|
4888
4888
|
accessToken?: string | undefined;
|
|
@@ -4894,7 +4894,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
4894
4894
|
errorCallbackURL?: string | undefined;
|
|
4895
4895
|
disableRedirect?: boolean | undefined;
|
|
4896
4896
|
}, {
|
|
4897
|
-
provider: "
|
|
4897
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
4898
4898
|
idToken?: {
|
|
4899
4899
|
token: string;
|
|
4900
4900
|
accessToken?: string | undefined;
|
|
@@ -4925,7 +4925,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
4925
4925
|
body: zod.ZodObject<{
|
|
4926
4926
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4927
4927
|
errorCallbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4928
|
-
provider: zod.ZodEnum<["github", ...("
|
|
4928
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
|
|
4929
4929
|
disableRedirect: zod.ZodOptional<zod.ZodBoolean>;
|
|
4930
4930
|
idToken: zod.ZodOptional<zod.ZodObject<{
|
|
4931
4931
|
token: zod.ZodString;
|
|
@@ -4947,7 +4947,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
4947
4947
|
nonce?: string | undefined;
|
|
4948
4948
|
}>>;
|
|
4949
4949
|
}, "strip", zod.ZodTypeAny, {
|
|
4950
|
-
provider: "
|
|
4950
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
4951
4951
|
idToken?: {
|
|
4952
4952
|
token: string;
|
|
4953
4953
|
accessToken?: string | undefined;
|
|
@@ -4959,7 +4959,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
4959
4959
|
errorCallbackURL?: string | undefined;
|
|
4960
4960
|
disableRedirect?: boolean | undefined;
|
|
4961
4961
|
}, {
|
|
4962
|
-
provider: "
|
|
4962
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
4963
4963
|
idToken?: {
|
|
4964
4964
|
token: string;
|
|
4965
4965
|
accessToken?: string | undefined;
|
|
@@ -6235,12 +6235,12 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
6235
6235
|
}>>;
|
|
6236
6236
|
body: zod.ZodObject<{
|
|
6237
6237
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
6238
|
-
provider: zod.ZodEnum<["github", ...("
|
|
6238
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
|
|
6239
6239
|
}, "strip", zod.ZodTypeAny, {
|
|
6240
|
-
provider: "
|
|
6240
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
6241
6241
|
callbackURL?: string | undefined;
|
|
6242
6242
|
}, {
|
|
6243
|
-
provider: "
|
|
6243
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
6244
6244
|
callbackURL?: string | undefined;
|
|
6245
6245
|
}>;
|
|
6246
6246
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
|
|
@@ -6282,12 +6282,12 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
6282
6282
|
}>>;
|
|
6283
6283
|
body: zod.ZodObject<{
|
|
6284
6284
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
6285
|
-
provider: zod.ZodEnum<["github", ...("
|
|
6285
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
|
|
6286
6286
|
}, "strip", zod.ZodTypeAny, {
|
|
6287
|
-
provider: "
|
|
6287
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
6288
6288
|
callbackURL?: string | undefined;
|
|
6289
6289
|
}, {
|
|
6290
|
-
provider: "
|
|
6290
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
6291
6291
|
callbackURL?: string | undefined;
|
|
6292
6292
|
}>;
|
|
6293
6293
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
|
|
@@ -6436,7 +6436,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
6436
6436
|
body: zod.ZodObject<{
|
|
6437
6437
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
6438
6438
|
errorCallbackURL: zod.ZodOptional<zod.ZodString>;
|
|
6439
|
-
provider: zod.ZodEnum<["github", ...("
|
|
6439
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
|
|
6440
6440
|
disableRedirect: zod.ZodOptional<zod.ZodBoolean>;
|
|
6441
6441
|
idToken: zod.ZodOptional<zod.ZodObject<{
|
|
6442
6442
|
token: zod.ZodString;
|
|
@@ -6458,7 +6458,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
6458
6458
|
nonce?: string | undefined;
|
|
6459
6459
|
}>>;
|
|
6460
6460
|
}, "strip", zod.ZodTypeAny, {
|
|
6461
|
-
provider: "
|
|
6461
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
6462
6462
|
idToken?: {
|
|
6463
6463
|
token: string;
|
|
6464
6464
|
accessToken?: string | undefined;
|
|
@@ -6470,7 +6470,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
6470
6470
|
errorCallbackURL?: string | undefined;
|
|
6471
6471
|
disableRedirect?: boolean | undefined;
|
|
6472
6472
|
}, {
|
|
6473
|
-
provider: "
|
|
6473
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
6474
6474
|
idToken?: {
|
|
6475
6475
|
token: string;
|
|
6476
6476
|
accessToken?: string | undefined;
|
|
@@ -6501,7 +6501,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
6501
6501
|
body: zod.ZodObject<{
|
|
6502
6502
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
6503
6503
|
errorCallbackURL: zod.ZodOptional<zod.ZodString>;
|
|
6504
|
-
provider: zod.ZodEnum<["github", ...("
|
|
6504
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
|
|
6505
6505
|
disableRedirect: zod.ZodOptional<zod.ZodBoolean>;
|
|
6506
6506
|
idToken: zod.ZodOptional<zod.ZodObject<{
|
|
6507
6507
|
token: zod.ZodString;
|
|
@@ -6523,7 +6523,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
6523
6523
|
nonce?: string | undefined;
|
|
6524
6524
|
}>>;
|
|
6525
6525
|
}, "strip", zod.ZodTypeAny, {
|
|
6526
|
-
provider: "
|
|
6526
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
6527
6527
|
idToken?: {
|
|
6528
6528
|
token: string;
|
|
6529
6529
|
accessToken?: string | undefined;
|
|
@@ -6535,7 +6535,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
6535
6535
|
errorCallbackURL?: string | undefined;
|
|
6536
6536
|
disableRedirect?: boolean | undefined;
|
|
6537
6537
|
}, {
|
|
6538
|
-
provider: "
|
|
6538
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
6539
6539
|
idToken?: {
|
|
6540
6540
|
token: string;
|
|
6541
6541
|
accessToken?: string | undefined;
|
|
@@ -7811,12 +7811,12 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
7811
7811
|
}>>;
|
|
7812
7812
|
body: zod.ZodObject<{
|
|
7813
7813
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
7814
|
-
provider: zod.ZodEnum<["github", ...("
|
|
7814
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
|
|
7815
7815
|
}, "strip", zod.ZodTypeAny, {
|
|
7816
|
-
provider: "
|
|
7816
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
7817
7817
|
callbackURL?: string | undefined;
|
|
7818
7818
|
}, {
|
|
7819
|
-
provider: "
|
|
7819
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
7820
7820
|
callbackURL?: string | undefined;
|
|
7821
7821
|
}>;
|
|
7822
7822
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
|
|
@@ -7858,12 +7858,12 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
7858
7858
|
}>>;
|
|
7859
7859
|
body: zod.ZodObject<{
|
|
7860
7860
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
7861
|
-
provider: zod.ZodEnum<["github", ...("
|
|
7861
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
|
|
7862
7862
|
}, "strip", zod.ZodTypeAny, {
|
|
7863
|
-
provider: "
|
|
7863
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
7864
7864
|
callbackURL?: string | undefined;
|
|
7865
7865
|
}, {
|
|
7866
|
-
provider: "
|
|
7866
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
|
|
7867
7867
|
callbackURL?: string | undefined;
|
|
7868
7868
|
}>;
|
|
7869
7869
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
|