better-auth 0.6.1-beta.8 → 0.6.1
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/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.cjs +1 -1
- package/dist/api.d.cts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/{auth-Cmz6hRKF.d.ts → auth-DGLMv7bU.d.ts} +72 -72
- package/dist/{auth--FW2hSpz.d.cts → auth-DmSb3rz9.d.cts} +72 -72
- package/dist/{chunk-M3G5PKM4.js → chunk-HBHHT77G.js} +2 -1
- package/dist/{chunk-UBYJGW7O.cjs → chunk-HORVA6HL.cjs} +2 -1
- 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.d.cts +2 -2
- package/dist/db.d.ts +2 -2
- package/dist/{index-CIro16f0.d.cts → index-8r8fwubO.d.cts} +1 -1
- package/dist/{index-evIABUAz.d.ts → index-Dd05uxW2.d.ts} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/plugins.cjs +2 -2
- package/dist/plugins.d.cts +3 -3
- package/dist/plugins.d.ts +3 -3
- package/dist/plugins.js +1 -1
- 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/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, F as FieldAttribute, A as Adapter } from '../auth
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-DmSb3rz9.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../types-DGbY_2Am.cjs';
|
|
5
5
|
import '../helper-DPDj8Nix.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-DGLMv7bU.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../types-BYWAbFsn.js';
|
|
5
5
|
import '../helper-DPDj8Nix.js';
|
package/dist/api.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHORVA6HLcjs = require('./chunk-HORVA6HL.cjs');require('./chunk-TLIY4SK7.cjs');require('./chunk-OBDVOCW6.cjs');require('./chunk-PKQJ6LDT.cjs');require('./chunk-QMT4JKBV.cjs');require('./chunk-OYEZMIJE.cjs');require('./chunk-2FTT4NBS.cjs');require('./chunk-6SMS6TX3.cjs');require('./chunk-V7Z635RZ.cjs');require('./chunk-B6SFM4XY.cjs');require('./chunk-J6NPEQIV.cjs');require('./chunk-4VDLQK6F.cjs');exports.APIError = _chunkHORVA6HLcjs.J; exports.callbackOAuth = _chunkHORVA6HLcjs.r; exports.changeEmail = _chunkHORVA6HLcjs.A; exports.changePassword = _chunkHORVA6HLcjs.x; exports.createAuthEndpoint = _chunkHORVA6HLcjs.c; exports.createAuthMiddleware = _chunkHORVA6HLcjs.b; exports.createEmailVerificationToken = _chunkHORVA6HLcjs.l; exports.csrfMiddleware = _chunkHORVA6HLcjs.d; exports.deleteUser = _chunkHORVA6HLcjs.z; exports.error = _chunkHORVA6HLcjs.C; exports.forgetPassword = _chunkHORVA6HLcjs.t; exports.forgetPasswordCallback = _chunkHORVA6HLcjs.u; exports.getCSRFToken = _chunkHORVA6HLcjs.B; exports.getEndpoints = _chunkHORVA6HLcjs.H; exports.getSession = _chunkHORVA6HLcjs.f; exports.getSessionFromCtx = _chunkHORVA6HLcjs.g; exports.linkSocialAccount = _chunkHORVA6HLcjs.G; exports.listSessions = _chunkHORVA6HLcjs.i; exports.listUserAccounts = _chunkHORVA6HLcjs.F; exports.ok = _chunkHORVA6HLcjs.D; exports.optionsMiddleware = _chunkHORVA6HLcjs.a; exports.resetPassword = _chunkHORVA6HLcjs.v; exports.revokeSession = _chunkHORVA6HLcjs.j; exports.revokeSessions = _chunkHORVA6HLcjs.k; exports.router = _chunkHORVA6HLcjs.I; exports.sendVerificationEmail = _chunkHORVA6HLcjs.m; exports.sessionMiddleware = _chunkHORVA6HLcjs.h; exports.setPassword = _chunkHORVA6HLcjs.y; exports.signInEmail = _chunkHORVA6HLcjs.p; exports.signInOAuth = _chunkHORVA6HLcjs.o; exports.signOut = _chunkHORVA6HLcjs.s; exports.signUpEmail = _chunkHORVA6HLcjs.E; exports.updateUser = _chunkHORVA6HLcjs.w; exports.verifyEmail = _chunkHORVA6HLcjs.n;
|
package/dist/api.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { e as AuthEndpoint, f as AuthMiddleware, a1 as callbackOAuth, aj as changeEmail, ag as changePassword, d as createAuthEndpoint, c as createAuthMiddleware, ac as createEmailVerificationToken, aq as csrfMiddleware, ai as deleteUser, al as error, a9 as forgetPassword, aa as forgetPasswordCallback, ak as getCSRFToken, Z as getEndpoints, a2 as getSession, a3 as getSessionFromCtx, ap as linkSocialAccount, a5 as listSessions, ao as listUserAccounts, am as ok, o as optionsMiddleware, ab as resetPassword, a6 as revokeSession, a7 as revokeSessions, _ as router, ad as sendVerificationEmail, a4 as sessionMiddleware, ah as setPassword, a0 as signInEmail, $ as signInOAuth, a8 as signOut, an as signUpEmail, af as updateUser, ae as verifyEmail } from './auth
|
|
1
|
+
export { e as AuthEndpoint, f as AuthMiddleware, a1 as callbackOAuth, aj as changeEmail, ag as changePassword, d as createAuthEndpoint, c as createAuthMiddleware, ac as createEmailVerificationToken, aq as csrfMiddleware, ai as deleteUser, al as error, a9 as forgetPassword, aa as forgetPasswordCallback, ak as getCSRFToken, Z as getEndpoints, a2 as getSession, a3 as getSessionFromCtx, ap as linkSocialAccount, a5 as listSessions, ao as listUserAccounts, am as ok, o as optionsMiddleware, ab as resetPassword, a6 as revokeSession, a7 as revokeSessions, _ as router, ad as sendVerificationEmail, a4 as sessionMiddleware, ah as setPassword, a0 as signInEmail, $ as signInOAuth, a8 as signOut, an as signUpEmail, af as updateUser, ae as verifyEmail } from './auth-DmSb3rz9.cjs';
|
|
2
2
|
import './helper-DPDj8Nix.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { e as AuthEndpoint, f as AuthMiddleware, a1 as callbackOAuth, aj as changeEmail, ag as changePassword, d as createAuthEndpoint, c as createAuthMiddleware, ac as createEmailVerificationToken, aq as csrfMiddleware, ai as deleteUser, al as error, a9 as forgetPassword, aa as forgetPasswordCallback, ak as getCSRFToken, Z as getEndpoints, a2 as getSession, a3 as getSessionFromCtx, ap as linkSocialAccount, a5 as listSessions, ao as listUserAccounts, am as ok, o as optionsMiddleware, ab as resetPassword, a6 as revokeSession, a7 as revokeSessions, _ as router, ad as sendVerificationEmail, a4 as sessionMiddleware, ah as setPassword, a0 as signInEmail, $ as signInOAuth, a8 as signOut, an as signUpEmail, af as updateUser, ae as verifyEmail } from './auth-
|
|
1
|
+
export { e as AuthEndpoint, f as AuthMiddleware, a1 as callbackOAuth, aj as changeEmail, ag as changePassword, d as createAuthEndpoint, c as createAuthMiddleware, ac as createEmailVerificationToken, aq as csrfMiddleware, ai as deleteUser, al as error, a9 as forgetPassword, aa as forgetPasswordCallback, ak as getCSRFToken, Z as getEndpoints, a2 as getSession, a3 as getSessionFromCtx, ap as linkSocialAccount, a5 as listSessions, ao as listUserAccounts, am as ok, o as optionsMiddleware, ab as resetPassword, a6 as revokeSession, a7 as revokeSessions, _ as router, ad as sendVerificationEmail, a4 as sessionMiddleware, ah as setPassword, a0 as signInEmail, $ as signInOAuth, a8 as signOut, an as signUpEmail, af as updateUser, ae as verifyEmail } from './auth-DGLMv7bU.js';
|
|
2
2
|
import './helper-DPDj8Nix.js';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
package/dist/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as y,B as z,C as A,D as B,E as C,F as D,G as E,H as F,I as G,J as H,a,b,c,d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m,o as n,p as o,r as p,s as q,t as r,u as s,v as t,w as u,x as v,y as w,z as x}from"./chunk-
|
|
1
|
+
import{A as y,B as z,C as A,D as B,E as C,F as D,G as E,H as F,I as G,J as H,a,b,c,d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m,o as n,p as o,r as p,s as q,t as r,u as s,v as t,w as u,x as v,y as w,z as x}from"./chunk-HBHHT77G.js";import"./chunk-NCRSY4BM.js";import"./chunk-Q2P2HXYZ.js";import"./chunk-ASMXGQJE.js";import"./chunk-MIF2W335.js";import"./chunk-333I4LG2.js";import"./chunk-J744ED5S.js";import"./chunk-RM4AH2KQ.js";import"./chunk-HZVOBC5R.js";import"./chunk-77SRGBR2.js";import"./chunk-72JSMFWS.js";import"./chunk-WOT6VMZA.js";export{H as APIError,p as callbackOAuth,y as changeEmail,v as changePassword,c as createAuthEndpoint,b as createAuthMiddleware,k as createEmailVerificationToken,d as csrfMiddleware,x as deleteUser,A as error,r as forgetPassword,s as forgetPasswordCallback,z as getCSRFToken,F as getEndpoints,e as getSession,f as getSessionFromCtx,E as linkSocialAccount,h as listSessions,D as listUserAccounts,B as ok,a as optionsMiddleware,t as resetPassword,i as revokeSession,j as revokeSessions,G as router,l as sendVerificationEmail,g as sessionMiddleware,w as setPassword,o as signInEmail,n as signInOAuth,q as signOut,C as signUpEmail,u as updateUser,m as verifyEmail};
|
|
@@ -1303,12 +1303,12 @@ declare const signInOAuth: {
|
|
|
1303
1303
|
/**
|
|
1304
1304
|
* OAuth2 provider to use`
|
|
1305
1305
|
*/
|
|
1306
|
-
provider: z.ZodEnum<["github", ...("
|
|
1306
|
+
provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
|
|
1307
1307
|
}, "strip", z.ZodTypeAny, {
|
|
1308
|
-
provider: "
|
|
1308
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
1309
1309
|
callbackURL?: string | undefined;
|
|
1310
1310
|
}, {
|
|
1311
|
-
provider: "
|
|
1311
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
1312
1312
|
callbackURL?: string | undefined;
|
|
1313
1313
|
}>;
|
|
1314
1314
|
use: better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions>[];
|
|
@@ -1346,12 +1346,12 @@ declare const signInOAuth: {
|
|
|
1346
1346
|
/**
|
|
1347
1347
|
* OAuth2 provider to use`
|
|
1348
1348
|
*/
|
|
1349
|
-
provider: z.ZodEnum<["github", ...("
|
|
1349
|
+
provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
|
|
1350
1350
|
}, "strip", z.ZodTypeAny, {
|
|
1351
|
-
provider: "
|
|
1351
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
1352
1352
|
callbackURL?: string | undefined;
|
|
1353
1353
|
}, {
|
|
1354
|
-
provider: "
|
|
1354
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
1355
1355
|
callbackURL?: string | undefined;
|
|
1356
1356
|
}>;
|
|
1357
1357
|
use: better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions>[];
|
|
@@ -1488,11 +1488,11 @@ declare const getSession: <Option extends BetterAuthOptions>() => {
|
|
|
1488
1488
|
* If cookie cache is enabled, it will disable the cache
|
|
1489
1489
|
* and fetch the session from the database
|
|
1490
1490
|
*/
|
|
1491
|
-
disableCookieCache: z.ZodBoolean
|
|
1491
|
+
disableCookieCache: z.ZodOptional<z.ZodBoolean>;
|
|
1492
1492
|
}, "strip", z.ZodTypeAny, {
|
|
1493
|
-
disableCookieCache
|
|
1493
|
+
disableCookieCache?: boolean | undefined;
|
|
1494
1494
|
}, {
|
|
1495
|
-
disableCookieCache
|
|
1495
|
+
disableCookieCache?: boolean | undefined;
|
|
1496
1496
|
}>>;
|
|
1497
1497
|
requireHeaders: true;
|
|
1498
1498
|
}>]>(...ctx: C): Promise<C extends [{
|
|
@@ -1509,11 +1509,11 @@ declare const getSession: <Option extends BetterAuthOptions>() => {
|
|
|
1509
1509
|
* If cookie cache is enabled, it will disable the cache
|
|
1510
1510
|
* and fetch the session from the database
|
|
1511
1511
|
*/
|
|
1512
|
-
disableCookieCache: z.ZodBoolean
|
|
1512
|
+
disableCookieCache: z.ZodOptional<z.ZodBoolean>;
|
|
1513
1513
|
}, "strip", z.ZodTypeAny, {
|
|
1514
|
-
disableCookieCache
|
|
1514
|
+
disableCookieCache?: boolean | undefined;
|
|
1515
1515
|
}, {
|
|
1516
|
-
disableCookieCache
|
|
1516
|
+
disableCookieCache?: boolean | undefined;
|
|
1517
1517
|
}>>;
|
|
1518
1518
|
requireHeaders: true;
|
|
1519
1519
|
};
|
|
@@ -2699,12 +2699,12 @@ declare const linkSocialAccount: {
|
|
|
2699
2699
|
/**
|
|
2700
2700
|
* OAuth2 provider to use`
|
|
2701
2701
|
*/
|
|
2702
|
-
provider: z.ZodEnum<["github", ...("
|
|
2702
|
+
provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
|
|
2703
2703
|
}, "strip", z.ZodTypeAny, {
|
|
2704
|
-
provider: "
|
|
2704
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
2705
2705
|
callbackURL?: string | undefined;
|
|
2706
2706
|
}, {
|
|
2707
|
-
provider: "
|
|
2707
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
2708
2708
|
callbackURL?: string | undefined;
|
|
2709
2709
|
}>;
|
|
2710
2710
|
use: (better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions> | better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
|
|
@@ -2761,12 +2761,12 @@ declare const linkSocialAccount: {
|
|
|
2761
2761
|
/**
|
|
2762
2762
|
* OAuth2 provider to use`
|
|
2763
2763
|
*/
|
|
2764
|
-
provider: z.ZodEnum<["github", ...("
|
|
2764
|
+
provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
|
|
2765
2765
|
}, "strip", z.ZodTypeAny, {
|
|
2766
|
-
provider: "
|
|
2766
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
2767
2767
|
callbackURL?: string | undefined;
|
|
2768
2768
|
}, {
|
|
2769
|
-
provider: "
|
|
2769
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
2770
2770
|
callbackURL?: string | undefined;
|
|
2771
2771
|
}>;
|
|
2772
2772
|
use: (better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions> | better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
|
|
@@ -2871,12 +2871,12 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
2871
2871
|
}>>;
|
|
2872
2872
|
body: zod.ZodObject<{
|
|
2873
2873
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
2874
|
-
provider: zod.ZodEnum<["github", ...("
|
|
2874
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
|
|
2875
2875
|
}, "strip", zod.ZodTypeAny, {
|
|
2876
|
-
provider: "
|
|
2876
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
2877
2877
|
callbackURL?: string | undefined;
|
|
2878
2878
|
}, {
|
|
2879
|
-
provider: "
|
|
2879
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
2880
2880
|
callbackURL?: string | undefined;
|
|
2881
2881
|
}>;
|
|
2882
2882
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions>[];
|
|
@@ -2904,12 +2904,12 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
2904
2904
|
}>>;
|
|
2905
2905
|
body: zod.ZodObject<{
|
|
2906
2906
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
2907
|
-
provider: zod.ZodEnum<["github", ...("
|
|
2907
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
|
|
2908
2908
|
}, "strip", zod.ZodTypeAny, {
|
|
2909
|
-
provider: "
|
|
2909
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
2910
2910
|
callbackURL?: string | undefined;
|
|
2911
2911
|
}, {
|
|
2912
|
-
provider: "
|
|
2912
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
2913
2913
|
callbackURL?: string | undefined;
|
|
2914
2914
|
}>;
|
|
2915
2915
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions>[];
|
|
@@ -2987,11 +2987,11 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
2987
2987
|
<C_1 extends [better_call.Context<"/get-session", {
|
|
2988
2988
|
method: "GET";
|
|
2989
2989
|
query: zod.ZodOptional<zod.ZodObject<{
|
|
2990
|
-
disableCookieCache: zod.ZodBoolean
|
|
2990
|
+
disableCookieCache: zod.ZodOptional<zod.ZodBoolean>;
|
|
2991
2991
|
}, "strip", zod.ZodTypeAny, {
|
|
2992
|
-
disableCookieCache
|
|
2992
|
+
disableCookieCache?: boolean | undefined;
|
|
2993
2993
|
}, {
|
|
2994
|
-
disableCookieCache
|
|
2994
|
+
disableCookieCache?: boolean | undefined;
|
|
2995
2995
|
}>>;
|
|
2996
2996
|
requireHeaders: true;
|
|
2997
2997
|
}>]>(...ctx: C_1): Promise<C_1 extends [{
|
|
@@ -3018,11 +3018,11 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
3018
3018
|
options: {
|
|
3019
3019
|
method: "GET";
|
|
3020
3020
|
query: zod.ZodOptional<zod.ZodObject<{
|
|
3021
|
-
disableCookieCache: zod.ZodBoolean
|
|
3021
|
+
disableCookieCache: zod.ZodOptional<zod.ZodBoolean>;
|
|
3022
3022
|
}, "strip", zod.ZodTypeAny, {
|
|
3023
|
-
disableCookieCache
|
|
3023
|
+
disableCookieCache?: boolean | undefined;
|
|
3024
3024
|
}, {
|
|
3025
|
-
disableCookieCache
|
|
3025
|
+
disableCookieCache?: boolean | undefined;
|
|
3026
3026
|
}>>;
|
|
3027
3027
|
requireHeaders: true;
|
|
3028
3028
|
};
|
|
@@ -4121,12 +4121,12 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
4121
4121
|
}>>;
|
|
4122
4122
|
body: zod.ZodObject<{
|
|
4123
4123
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4124
|
-
provider: zod.ZodEnum<["github", ...("
|
|
4124
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
|
|
4125
4125
|
}, "strip", zod.ZodTypeAny, {
|
|
4126
|
-
provider: "
|
|
4126
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
4127
4127
|
callbackURL?: string | undefined;
|
|
4128
4128
|
}, {
|
|
4129
|
-
provider: "
|
|
4129
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
4130
4130
|
callbackURL?: string | undefined;
|
|
4131
4131
|
}>;
|
|
4132
4132
|
use: (Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions> | Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
|
|
@@ -4173,12 +4173,12 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
4173
4173
|
}>>;
|
|
4174
4174
|
body: zod.ZodObject<{
|
|
4175
4175
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4176
|
-
provider: zod.ZodEnum<["github", ...("
|
|
4176
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
|
|
4177
4177
|
}, "strip", zod.ZodTypeAny, {
|
|
4178
|
-
provider: "
|
|
4178
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
4179
4179
|
callbackURL?: string | undefined;
|
|
4180
4180
|
}, {
|
|
4181
|
-
provider: "
|
|
4181
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
4182
4182
|
callbackURL?: string | undefined;
|
|
4183
4183
|
}>;
|
|
4184
4184
|
use: (Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions> | Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
|
|
@@ -4332,12 +4332,12 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
4332
4332
|
}>>;
|
|
4333
4333
|
body: zod.ZodObject<{
|
|
4334
4334
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4335
|
-
provider: zod.ZodEnum<["github", ...("
|
|
4335
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
|
|
4336
4336
|
}, "strip", zod.ZodTypeAny, {
|
|
4337
|
-
provider: "
|
|
4337
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
4338
4338
|
callbackURL?: string | undefined;
|
|
4339
4339
|
}, {
|
|
4340
|
-
provider: "
|
|
4340
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
4341
4341
|
callbackURL?: string | undefined;
|
|
4342
4342
|
}>;
|
|
4343
4343
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions>[];
|
|
@@ -4365,12 +4365,12 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
4365
4365
|
}>>;
|
|
4366
4366
|
body: zod.ZodObject<{
|
|
4367
4367
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4368
|
-
provider: zod.ZodEnum<["github", ...("
|
|
4368
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
|
|
4369
4369
|
}, "strip", zod.ZodTypeAny, {
|
|
4370
|
-
provider: "
|
|
4370
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
4371
4371
|
callbackURL?: string | undefined;
|
|
4372
4372
|
}, {
|
|
4373
|
-
provider: "
|
|
4373
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
4374
4374
|
callbackURL?: string | undefined;
|
|
4375
4375
|
}>;
|
|
4376
4376
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions>[];
|
|
@@ -4448,11 +4448,11 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
4448
4448
|
<C_1 extends [better_call.Context<"/get-session", {
|
|
4449
4449
|
method: "GET";
|
|
4450
4450
|
query: zod.ZodOptional<zod.ZodObject<{
|
|
4451
|
-
disableCookieCache: zod.ZodBoolean
|
|
4451
|
+
disableCookieCache: zod.ZodOptional<zod.ZodBoolean>;
|
|
4452
4452
|
}, "strip", zod.ZodTypeAny, {
|
|
4453
|
-
disableCookieCache
|
|
4453
|
+
disableCookieCache?: boolean | undefined;
|
|
4454
4454
|
}, {
|
|
4455
|
-
disableCookieCache
|
|
4455
|
+
disableCookieCache?: boolean | undefined;
|
|
4456
4456
|
}>>;
|
|
4457
4457
|
requireHeaders: true;
|
|
4458
4458
|
}>]>(...ctx: C_1): Promise<C_1 extends [{
|
|
@@ -4479,11 +4479,11 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
4479
4479
|
options: {
|
|
4480
4480
|
method: "GET";
|
|
4481
4481
|
query: zod.ZodOptional<zod.ZodObject<{
|
|
4482
|
-
disableCookieCache: zod.ZodBoolean
|
|
4482
|
+
disableCookieCache: zod.ZodOptional<zod.ZodBoolean>;
|
|
4483
4483
|
}, "strip", zod.ZodTypeAny, {
|
|
4484
|
-
disableCookieCache
|
|
4484
|
+
disableCookieCache?: boolean | undefined;
|
|
4485
4485
|
}, {
|
|
4486
|
-
disableCookieCache
|
|
4486
|
+
disableCookieCache?: boolean | undefined;
|
|
4487
4487
|
}>>;
|
|
4488
4488
|
requireHeaders: true;
|
|
4489
4489
|
};
|
|
@@ -5582,12 +5582,12 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
5582
5582
|
}>>;
|
|
5583
5583
|
body: zod.ZodObject<{
|
|
5584
5584
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
5585
|
-
provider: zod.ZodEnum<["github", ...("
|
|
5585
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
|
|
5586
5586
|
}, "strip", zod.ZodTypeAny, {
|
|
5587
|
-
provider: "
|
|
5587
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
5588
5588
|
callbackURL?: string | undefined;
|
|
5589
5589
|
}, {
|
|
5590
|
-
provider: "
|
|
5590
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
5591
5591
|
callbackURL?: string | undefined;
|
|
5592
5592
|
}>;
|
|
5593
5593
|
use: (Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions> | Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
|
|
@@ -5634,12 +5634,12 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
5634
5634
|
}>>;
|
|
5635
5635
|
body: zod.ZodObject<{
|
|
5636
5636
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
5637
|
-
provider: zod.ZodEnum<["github", ...("
|
|
5637
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
|
|
5638
5638
|
}, "strip", zod.ZodTypeAny, {
|
|
5639
|
-
provider: "
|
|
5639
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
5640
5640
|
callbackURL?: string | undefined;
|
|
5641
5641
|
}, {
|
|
5642
|
-
provider: "
|
|
5642
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
5643
5643
|
callbackURL?: string | undefined;
|
|
5644
5644
|
}>;
|
|
5645
5645
|
use: (Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions> | Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
|
|
@@ -5795,12 +5795,12 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
5795
5795
|
}>>;
|
|
5796
5796
|
body: zod.ZodObject<{
|
|
5797
5797
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
5798
|
-
provider: zod.ZodEnum<["github", ...("
|
|
5798
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
|
|
5799
5799
|
}, "strip", zod.ZodTypeAny, {
|
|
5800
|
-
provider: "
|
|
5800
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
5801
5801
|
callbackURL?: string | undefined;
|
|
5802
5802
|
}, {
|
|
5803
|
-
provider: "
|
|
5803
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
5804
5804
|
callbackURL?: string | undefined;
|
|
5805
5805
|
}>;
|
|
5806
5806
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions>[];
|
|
@@ -5828,12 +5828,12 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
5828
5828
|
}>>;
|
|
5829
5829
|
body: zod.ZodObject<{
|
|
5830
5830
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
5831
|
-
provider: zod.ZodEnum<["github", ...("
|
|
5831
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
|
|
5832
5832
|
}, "strip", zod.ZodTypeAny, {
|
|
5833
|
-
provider: "
|
|
5833
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
5834
5834
|
callbackURL?: string | undefined;
|
|
5835
5835
|
}, {
|
|
5836
|
-
provider: "
|
|
5836
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
5837
5837
|
callbackURL?: string | undefined;
|
|
5838
5838
|
}>;
|
|
5839
5839
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions>[];
|
|
@@ -5911,11 +5911,11 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
5911
5911
|
<C extends [better_call.Context<"/get-session", {
|
|
5912
5912
|
method: "GET";
|
|
5913
5913
|
query: zod.ZodOptional<zod.ZodObject<{
|
|
5914
|
-
disableCookieCache: zod.ZodBoolean
|
|
5914
|
+
disableCookieCache: zod.ZodOptional<zod.ZodBoolean>;
|
|
5915
5915
|
}, "strip", zod.ZodTypeAny, {
|
|
5916
|
-
disableCookieCache
|
|
5916
|
+
disableCookieCache?: boolean | undefined;
|
|
5917
5917
|
}, {
|
|
5918
|
-
disableCookieCache
|
|
5918
|
+
disableCookieCache?: boolean | undefined;
|
|
5919
5919
|
}>>;
|
|
5920
5920
|
requireHeaders: true;
|
|
5921
5921
|
}>]>(...ctx: C): Promise<C extends [{
|
|
@@ -5942,11 +5942,11 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
5942
5942
|
options: {
|
|
5943
5943
|
method: "GET";
|
|
5944
5944
|
query: zod.ZodOptional<zod.ZodObject<{
|
|
5945
|
-
disableCookieCache: zod.ZodBoolean
|
|
5945
|
+
disableCookieCache: zod.ZodOptional<zod.ZodBoolean>;
|
|
5946
5946
|
}, "strip", zod.ZodTypeAny, {
|
|
5947
|
-
disableCookieCache
|
|
5947
|
+
disableCookieCache?: boolean | undefined;
|
|
5948
5948
|
}, {
|
|
5949
|
-
disableCookieCache
|
|
5949
|
+
disableCookieCache?: boolean | undefined;
|
|
5950
5950
|
}>>;
|
|
5951
5951
|
requireHeaders: true;
|
|
5952
5952
|
};
|
|
@@ -7045,12 +7045,12 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
7045
7045
|
}>>;
|
|
7046
7046
|
body: zod.ZodObject<{
|
|
7047
7047
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
7048
|
-
provider: zod.ZodEnum<["github", ...("
|
|
7048
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
|
|
7049
7049
|
}, "strip", zod.ZodTypeAny, {
|
|
7050
|
-
provider: "
|
|
7050
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
7051
7051
|
callbackURL?: string | undefined;
|
|
7052
7052
|
}, {
|
|
7053
|
-
provider: "
|
|
7053
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
7054
7054
|
callbackURL?: string | undefined;
|
|
7055
7055
|
}>;
|
|
7056
7056
|
use: (Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions> | Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
|
|
@@ -7097,12 +7097,12 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
7097
7097
|
}>>;
|
|
7098
7098
|
body: zod.ZodObject<{
|
|
7099
7099
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
7100
|
-
provider: zod.ZodEnum<["github", ...("
|
|
7100
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
|
|
7101
7101
|
}, "strip", zod.ZodTypeAny, {
|
|
7102
|
-
provider: "
|
|
7102
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
7103
7103
|
callbackURL?: string | undefined;
|
|
7104
7104
|
}, {
|
|
7105
|
-
provider: "
|
|
7105
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
|
|
7106
7106
|
callbackURL?: string | undefined;
|
|
7107
7107
|
}>;
|
|
7108
7108
|
use: (Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions> | Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
|