better-auth 0.7.5-beta.6 → 0.7.5-beta.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 +2 -2
- package/dist/adapters/drizzle.d.ts +2 -2
- package/dist/adapters/kysely.d.cts +2 -2
- package/dist/adapters/kysely.d.ts +2 -2
- package/dist/adapters/mongodb.d.cts +2 -2
- package/dist/adapters/mongodb.d.ts +2 -2
- package/dist/adapters/prisma.d.cts +2 -2
- package/dist/adapters/prisma.d.ts +2 -2
- package/dist/api.d.cts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/{auth-5vq2cwU_.d.cts → auth-CbhcAHOF.d.cts} +47 -47
- package/dist/{auth-DXTYJS1g.d.ts → auth-NHujeJMf.d.ts} +47 -47
- package/dist/client/plugins.d.cts +4 -4
- package/dist/client/plugins.d.ts +4 -4
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/cookies.d.cts +2 -2
- package/dist/cookies.d.ts +2 -2
- package/dist/db.d.cts +3 -3
- package/dist/db.d.ts +3 -3
- package/dist/{index-B5OO_C31.d.ts → index-BwdSU0WF.d.ts} +8 -8
- package/dist/{index-o8ias2pI.d.cts → index-CK3sHUOB.d.cts} +8 -8
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/oauth2.d.cts +4 -4
- package/dist/oauth2.d.ts +4 -4
- package/dist/plugins.d.cts +10 -10
- package/dist/plugins.d.ts +10 -10
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/social.d.cts +1 -1
- package/dist/social.d.ts +1 -1
- package/dist/solid-start.d.cts +2 -2
- package/dist/solid-start.d.ts +2 -2
- package/dist/solid.d.cts +2 -2
- package/dist/solid.d.ts +2 -2
- package/dist/{state-2IP14aYo.d.ts → state-6VKTmUTy.d.ts} +1 -1
- package/dist/{state-mF7s1_xk.d.cts → state-CoKL3DyH.d.cts} +1 -1
- package/dist/svelte-kit.d.cts +2 -2
- package/dist/svelte-kit.d.ts +2 -2
- package/dist/svelte.d.cts +2 -2
- package/dist/svelte.d.ts +2 -2
- package/dist/types.d.cts +4 -4
- package/dist/types.d.ts +4 -4
- package/dist/vue.d.cts +2 -2
- package/dist/vue.d.ts +2 -2
- package/package.json +2 -2
- package/dist/{index-mRrWw8DZ.d.ts → index-CGq2kTts.d.cts} +4 -4
- package/dist/{index-mRrWw8DZ.d.cts → index-CGq2kTts.d.ts} +4 -4
package/dist/node.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as http from 'http';
|
|
2
2
|
import { IncomingHttpHeaders } from 'http';
|
|
3
|
-
import { a as Auth } from './auth-
|
|
3
|
+
import { a as Auth } from './auth-NHujeJMf.js';
|
|
4
4
|
import 'node_modules/better-call/dist/router-Bn7zn81P';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'kysely';
|
|
7
|
-
import './index-
|
|
7
|
+
import './index-CGq2kTts.js';
|
|
8
8
|
import 'better-call';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
|
package/dist/oauth2.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as ProviderOptions, O as OAuth2Tokens } from './index-
|
|
2
|
-
export { e as OAuthProvider } from './index-
|
|
3
|
-
export { g as generateState, p as parseState } from './state-
|
|
1
|
+
import { d as ProviderOptions, O as OAuth2Tokens } from './index-CGq2kTts.cjs';
|
|
2
|
+
export { e as OAuthProvider } from './index-CGq2kTts.cjs';
|
|
3
|
+
export { g as generateState, p as parseState } from './state-CoKL3DyH.cjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './auth-
|
|
5
|
+
import './auth-CbhcAHOF.cjs';
|
|
6
6
|
import 'node_modules/better-call/dist/router-Bn7zn81P';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-call';
|
package/dist/oauth2.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as ProviderOptions, O as OAuth2Tokens } from './index-
|
|
2
|
-
export { e as OAuthProvider } from './index-
|
|
3
|
-
export { g as generateState, p as parseState } from './state-
|
|
1
|
+
import { d as ProviderOptions, O as OAuth2Tokens } from './index-CGq2kTts.js';
|
|
2
|
+
export { e as OAuthProvider } from './index-CGq2kTts.js';
|
|
3
|
+
export { g as generateState, p as parseState } from './state-6VKTmUTy.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './auth-
|
|
5
|
+
import './auth-NHujeJMf.js';
|
|
6
6
|
import 'node_modules/better-call/dist/router-Bn7zn81P';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-call';
|
package/dist/plugins.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { A as AnonymousOptions, J as JwtOptions, O as OrganizationOptions, b as Passkey, P as PasskeyOptions, U as UserWithPhoneNumber, f as UserWithRole, i as admin, h as adminMiddleware, e as anonymous, n as emailOTP, j as genericOAuth, g as getPasskeyActions, k as jwt, m as magicLink, l as multiSession, o as organization, p as passkey, c as passkeyClient, d as phoneNumber, t as twoFactor, a as twoFactorClient, u as username } from './index-
|
|
2
|
-
import { H as HookEndpointContext } from './auth-
|
|
3
|
-
export { x as AuthEndpoint, y as AuthMiddleware, k as BetterAuthPlugin, P as PluginSchema, w as createAuthEndpoint, v as createAuthMiddleware, u as optionsMiddleware } from './auth-
|
|
1
|
+
export { A as AnonymousOptions, J as JwtOptions, O as OrganizationOptions, b as Passkey, P as PasskeyOptions, U as UserWithPhoneNumber, f as UserWithRole, i as admin, h as adminMiddleware, e as anonymous, n as emailOTP, j as genericOAuth, g as getPasskeyActions, k as jwt, m as magicLink, l as multiSession, o as organization, p as passkey, c as passkeyClient, d as phoneNumber, t as twoFactor, a as twoFactorClient, u as username } from './index-CK3sHUOB.cjs';
|
|
2
|
+
import { H as HookEndpointContext } from './auth-CbhcAHOF.cjs';
|
|
3
|
+
export { x as AuthEndpoint, y as AuthMiddleware, k as BetterAuthPlugin, P as PluginSchema, w as createAuthEndpoint, v as createAuthMiddleware, u as optionsMiddleware } from './auth-CbhcAHOF.cjs';
|
|
4
4
|
export { H as HIDE_METADATA } from './hide-metadata-DEHJp1rk.cjs';
|
|
5
5
|
import * as better_call from 'better-call';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import './index-
|
|
7
|
+
import './index-CGq2kTts.cjs';
|
|
8
8
|
import '@better-fetch/fetch';
|
|
9
9
|
import 'nanostores';
|
|
10
10
|
import './dom.js';
|
|
@@ -84,13 +84,13 @@ declare const oneTap: (options?: OneTapOptions) => {
|
|
|
84
84
|
};
|
|
85
85
|
accounts: {
|
|
86
86
|
id: string;
|
|
87
|
+
userId: string;
|
|
87
88
|
providerId: string;
|
|
88
89
|
accountId: string;
|
|
89
|
-
|
|
90
|
+
expiresAt?: Date | null | undefined;
|
|
90
91
|
accessToken?: string | null | undefined;
|
|
91
92
|
refreshToken?: string | null | undefined;
|
|
92
93
|
idToken?: string | null | undefined;
|
|
93
|
-
expiresAt?: Date | null | undefined;
|
|
94
94
|
password?: string | null | undefined;
|
|
95
95
|
}[];
|
|
96
96
|
};
|
|
@@ -138,11 +138,11 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions) => {
|
|
|
138
138
|
callbackURL: z.ZodString;
|
|
139
139
|
cookies: z.ZodString;
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
|
-
callbackURL: string;
|
|
142
141
|
cookies: string;
|
|
143
|
-
}, {
|
|
144
142
|
callbackURL: string;
|
|
143
|
+
}, {
|
|
145
144
|
cookies: string;
|
|
145
|
+
callbackURL: string;
|
|
146
146
|
}>;
|
|
147
147
|
}>]>(...ctx: C): Promise<C extends [{
|
|
148
148
|
asResponse: true;
|
|
@@ -154,11 +154,11 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions) => {
|
|
|
154
154
|
callbackURL: z.ZodString;
|
|
155
155
|
cookies: z.ZodString;
|
|
156
156
|
}, "strip", z.ZodTypeAny, {
|
|
157
|
-
callbackURL: string;
|
|
158
157
|
cookies: string;
|
|
159
|
-
}, {
|
|
160
158
|
callbackURL: string;
|
|
159
|
+
}, {
|
|
161
160
|
cookies: string;
|
|
161
|
+
callbackURL: string;
|
|
162
162
|
}>;
|
|
163
163
|
};
|
|
164
164
|
method: better_call.Method | better_call.Method[];
|
package/dist/plugins.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { A as AnonymousOptions, J as JwtOptions, O as OrganizationOptions, b as Passkey, P as PasskeyOptions, U as UserWithPhoneNumber, f as UserWithRole, i as admin, h as adminMiddleware, e as anonymous, n as emailOTP, j as genericOAuth, g as getPasskeyActions, k as jwt, m as magicLink, l as multiSession, o as organization, p as passkey, c as passkeyClient, d as phoneNumber, t as twoFactor, a as twoFactorClient, u as username } from './index-
|
|
2
|
-
import { H as HookEndpointContext } from './auth-
|
|
3
|
-
export { x as AuthEndpoint, y as AuthMiddleware, k as BetterAuthPlugin, P as PluginSchema, w as createAuthEndpoint, v as createAuthMiddleware, u as optionsMiddleware } from './auth-
|
|
1
|
+
export { A as AnonymousOptions, J as JwtOptions, O as OrganizationOptions, b as Passkey, P as PasskeyOptions, U as UserWithPhoneNumber, f as UserWithRole, i as admin, h as adminMiddleware, e as anonymous, n as emailOTP, j as genericOAuth, g as getPasskeyActions, k as jwt, m as magicLink, l as multiSession, o as organization, p as passkey, c as passkeyClient, d as phoneNumber, t as twoFactor, a as twoFactorClient, u as username } from './index-BwdSU0WF.js';
|
|
2
|
+
import { H as HookEndpointContext } from './auth-NHujeJMf.js';
|
|
3
|
+
export { x as AuthEndpoint, y as AuthMiddleware, k as BetterAuthPlugin, P as PluginSchema, w as createAuthEndpoint, v as createAuthMiddleware, u as optionsMiddleware } from './auth-NHujeJMf.js';
|
|
4
4
|
export { H as HIDE_METADATA } from './hide-metadata-DEHJp1rk.js';
|
|
5
5
|
import * as better_call from 'better-call';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import './index-
|
|
7
|
+
import './index-CGq2kTts.js';
|
|
8
8
|
import '@better-fetch/fetch';
|
|
9
9
|
import 'nanostores';
|
|
10
10
|
import './dom.js';
|
|
@@ -84,13 +84,13 @@ declare const oneTap: (options?: OneTapOptions) => {
|
|
|
84
84
|
};
|
|
85
85
|
accounts: {
|
|
86
86
|
id: string;
|
|
87
|
+
userId: string;
|
|
87
88
|
providerId: string;
|
|
88
89
|
accountId: string;
|
|
89
|
-
|
|
90
|
+
expiresAt?: Date | null | undefined;
|
|
90
91
|
accessToken?: string | null | undefined;
|
|
91
92
|
refreshToken?: string | null | undefined;
|
|
92
93
|
idToken?: string | null | undefined;
|
|
93
|
-
expiresAt?: Date | null | undefined;
|
|
94
94
|
password?: string | null | undefined;
|
|
95
95
|
}[];
|
|
96
96
|
};
|
|
@@ -138,11 +138,11 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions) => {
|
|
|
138
138
|
callbackURL: z.ZodString;
|
|
139
139
|
cookies: z.ZodString;
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
|
-
callbackURL: string;
|
|
142
141
|
cookies: string;
|
|
143
|
-
}, {
|
|
144
142
|
callbackURL: string;
|
|
143
|
+
}, {
|
|
145
144
|
cookies: string;
|
|
145
|
+
callbackURL: string;
|
|
146
146
|
}>;
|
|
147
147
|
}>]>(...ctx: C): Promise<C extends [{
|
|
148
148
|
asResponse: true;
|
|
@@ -154,11 +154,11 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions) => {
|
|
|
154
154
|
callbackURL: z.ZodString;
|
|
155
155
|
cookies: z.ZodString;
|
|
156
156
|
}, "strip", z.ZodTypeAny, {
|
|
157
|
-
callbackURL: string;
|
|
158
157
|
cookies: string;
|
|
159
|
-
}, {
|
|
160
158
|
callbackURL: string;
|
|
159
|
+
}, {
|
|
161
160
|
cookies: string;
|
|
161
|
+
callbackURL: string;
|
|
162
162
|
}>;
|
|
163
163
|
};
|
|
164
164
|
method: better_call.Method | better_call.Method[];
|
package/dist/react.d.cts
CHANGED
|
@@ -4,8 +4,8 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
|
4
4
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
5
5
|
import { useStore } from '@nanostores/react';
|
|
6
6
|
import { ClientOptions, InferClientAPI, InferActions, InferSessionFromClient, InferUserFromClient, BetterAuthClientPlugin, IsSignal } from './types.cjs';
|
|
7
|
-
import { U as UnionToIntersection } from './index-
|
|
8
|
-
import './auth-
|
|
7
|
+
import { U as UnionToIntersection } from './index-CGq2kTts.cjs';
|
|
8
|
+
import './auth-CbhcAHOF.cjs';
|
|
9
9
|
import 'node_modules/better-call/dist/router-Bn7zn81P';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import 'better-call';
|
package/dist/react.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
|
4
4
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
5
5
|
import { useStore } from '@nanostores/react';
|
|
6
6
|
import { ClientOptions, InferClientAPI, InferActions, InferSessionFromClient, InferUserFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
7
|
-
import { U as UnionToIntersection } from './index-
|
|
8
|
-
import './auth-
|
|
7
|
+
import { U as UnionToIntersection } from './index-CGq2kTts.js';
|
|
8
|
+
import './auth-NHujeJMf.js';
|
|
9
9
|
import 'node_modules/better-call/dist/router-Bn7zn81P';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import 'better-call';
|
package/dist/social.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { o as AppleOptions, n as AppleProfile, u as DiscordOptions, t as DiscordProfile, Q as DropboxOptions, N as DropboxProfile, C as FacebookOptions, F as FacebookProfile, i as GithubOptions, G as GithubProfile, a0 as GitlabOptions, $ as GitlabProfile, l as GoogleOptions, k as GoogleProfile, Z as LinkedInOptions, Y as LinkedInProfile, M as MicrosoftEntraIDProfile, q as MicrosoftOptions, g as SocialProviderList, f as SocialProviders, x as SpotifyOptions, w as SpotifyProfile, z as TwitchOptions, T as TwitchProfile, J as TwitterOption, I as TwitterProfile, p as apple, v as discord, X as dropbox, E as facebook, j as github, a1 as gitlab, m as google, _ as linkedin, r as microsoft, h as socialProviderList, s as socialProviders, y as spotify, B as twitch, K as twitter } from './index-
|
|
1
|
+
export { o as AppleOptions, n as AppleProfile, u as DiscordOptions, t as DiscordProfile, Q as DropboxOptions, N as DropboxProfile, C as FacebookOptions, F as FacebookProfile, i as GithubOptions, G as GithubProfile, a0 as GitlabOptions, $ as GitlabProfile, l as GoogleOptions, k as GoogleProfile, Z as LinkedInOptions, Y as LinkedInProfile, M as MicrosoftEntraIDProfile, q as MicrosoftOptions, g as SocialProviderList, f as SocialProviders, x as SpotifyOptions, w as SpotifyProfile, z as TwitchOptions, T as TwitchProfile, J as TwitterOption, I as TwitterProfile, p as apple, v as discord, X as dropbox, E as facebook, j as github, a1 as gitlab, m as google, _ as linkedin, r as microsoft, h as socialProviderList, s as socialProviders, y as spotify, B as twitch, K as twitter } from './index-CGq2kTts.cjs';
|
|
2
2
|
import 'zod';
|
package/dist/social.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { o as AppleOptions, n as AppleProfile, u as DiscordOptions, t as DiscordProfile, Q as DropboxOptions, N as DropboxProfile, C as FacebookOptions, F as FacebookProfile, i as GithubOptions, G as GithubProfile, a0 as GitlabOptions, $ as GitlabProfile, l as GoogleOptions, k as GoogleProfile, Z as LinkedInOptions, Y as LinkedInProfile, M as MicrosoftEntraIDProfile, q as MicrosoftOptions, g as SocialProviderList, f as SocialProviders, x as SpotifyOptions, w as SpotifyProfile, z as TwitchOptions, T as TwitchProfile, J as TwitterOption, I as TwitterProfile, p as apple, v as discord, X as dropbox, E as facebook, j as github, a1 as gitlab, m as google, _ as linkedin, r as microsoft, h as socialProviderList, s as socialProviders, y as spotify, B as twitch, K as twitter } from './index-
|
|
1
|
+
export { o as AppleOptions, n as AppleProfile, u as DiscordOptions, t as DiscordProfile, Q as DropboxOptions, N as DropboxProfile, C as FacebookOptions, F as FacebookProfile, i as GithubOptions, G as GithubProfile, a0 as GitlabOptions, $ as GitlabProfile, l as GoogleOptions, k as GoogleProfile, Z as LinkedInOptions, Y as LinkedInProfile, M as MicrosoftEntraIDProfile, q as MicrosoftOptions, g as SocialProviderList, f as SocialProviders, x as SpotifyOptions, w as SpotifyProfile, z as TwitchOptions, T as TwitchProfile, J as TwitterOption, I as TwitterProfile, p as apple, v as discord, X as dropbox, E as facebook, j as github, a1 as gitlab, m as google, _ as linkedin, r as microsoft, h as socialProviderList, s as socialProviders, y as spotify, B as twitch, K as twitter } from './index-CGq2kTts.js';
|
|
2
2
|
import 'zod';
|
package/dist/solid-start.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as Auth } from './auth-
|
|
1
|
+
import { a as Auth } from './auth-CbhcAHOF.cjs';
|
|
2
2
|
import 'node_modules/better-call/dist/router-Bn7zn81P';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-CGq2kTts.cjs';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
|
8
8
|
|
package/dist/solid-start.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as Auth } from './auth-
|
|
1
|
+
import { a as Auth } from './auth-NHujeJMf.js';
|
|
2
2
|
import 'node_modules/better-call/dist/router-Bn7zn81P';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-CGq2kTts.js';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
|
8
8
|
|
package/dist/solid.d.cts
CHANGED
|
@@ -2,9 +2,9 @@ import * as zod from 'zod';
|
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
4
4
|
import { ClientOptions, InferClientAPI, InferActions, InferSessionFromClient, InferUserFromClient, BetterAuthClientPlugin, IsSignal } from './types.cjs';
|
|
5
|
-
import { U as UnionToIntersection } from './index-
|
|
5
|
+
import { U as UnionToIntersection } from './index-CGq2kTts.cjs';
|
|
6
6
|
import { Accessor } from './reactive/signal.js';
|
|
7
|
-
import './auth-
|
|
7
|
+
import './auth-CbhcAHOF.cjs';
|
|
8
8
|
import 'node_modules/better-call/dist/router-Bn7zn81P';
|
|
9
9
|
import 'kysely';
|
|
10
10
|
import 'better-call';
|
package/dist/solid.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import * as zod from 'zod';
|
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
4
4
|
import { ClientOptions, InferClientAPI, InferActions, InferSessionFromClient, InferUserFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
5
|
-
import { U as UnionToIntersection } from './index-
|
|
5
|
+
import { U as UnionToIntersection } from './index-CGq2kTts.js';
|
|
6
6
|
import { Accessor } from './reactive/signal.js';
|
|
7
|
-
import './auth-
|
|
7
|
+
import './auth-NHujeJMf.js';
|
|
8
8
|
import 'node_modules/better-call/dist/router-Bn7zn81P';
|
|
9
9
|
import 'kysely';
|
|
10
10
|
import 'better-call';
|
package/dist/svelte-kit.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as BetterAuthOptions } from './auth-
|
|
1
|
+
import { B as BetterAuthOptions } from './auth-CbhcAHOF.cjs';
|
|
2
2
|
import 'node_modules/better-call/dist/router-Bn7zn81P';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-CGq2kTts.cjs';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
|
8
8
|
|
package/dist/svelte-kit.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as BetterAuthOptions } from './auth-
|
|
1
|
+
import { B as BetterAuthOptions } from './auth-NHujeJMf.js';
|
|
2
2
|
import 'node_modules/better-call/dist/router-Bn7zn81P';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-CGq2kTts.js';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
|
8
8
|
|
package/dist/svelte.d.cts
CHANGED
|
@@ -4,8 +4,8 @@ import * as zod from 'zod';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
import { ClientOptions, InferClientAPI, InferActions, InferSessionFromClient, InferUserFromClient, BetterAuthClientPlugin, IsSignal } from './types.cjs';
|
|
7
|
-
import { U as UnionToIntersection } from './index-
|
|
8
|
-
import './auth-
|
|
7
|
+
import { U as UnionToIntersection } from './index-CGq2kTts.cjs';
|
|
8
|
+
import './auth-CbhcAHOF.cjs';
|
|
9
9
|
import 'node_modules/better-call/dist/router-Bn7zn81P';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import 'better-call';
|
package/dist/svelte.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import * as zod from 'zod';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
import { ClientOptions, InferClientAPI, InferActions, InferSessionFromClient, InferUserFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
7
|
-
import { U as UnionToIntersection } from './index-
|
|
8
|
-
import './auth-
|
|
7
|
+
import { U as UnionToIntersection } from './index-CGq2kTts.js';
|
|
8
|
+
import './auth-NHujeJMf.js';
|
|
9
9
|
import 'node_modules/better-call/dist/router-Bn7zn81P';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import 'better-call';
|
package/dist/types.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as BetterAuthPlugin, a as Auth, Q as InferFieldsInputClient, N as InferFieldsOutput } from './auth-
|
|
2
|
-
export { A as Adapter, e as AdditionalSessionFieldsInput, f as AdditionalSessionFieldsOutput, c as AdditionalUserFieldsInput, d as AdditionalUserFieldsOutput, j as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, h as InferPluginTypes, g as InferSession, I as InferUser, P as PluginSchema, R as RateLimit, S as SecondaryStorage, W as Where, i as init } from './auth-
|
|
3
|
-
import { U as UnionToIntersection, H as HasRequiredKeys, P as Prettify, c as StripEmptyObjects, L as LiteralString, S as Session, a as User } from './index-
|
|
4
|
-
export { D as DeepPartial, b as LiteralUnion, R as RequiredKeysOf, W as WithoutEmpty } from './index-
|
|
1
|
+
import { k as BetterAuthPlugin, a as Auth, Q as InferFieldsInputClient, N as InferFieldsOutput } from './auth-CbhcAHOF.cjs';
|
|
2
|
+
export { A as Adapter, e as AdditionalSessionFieldsInput, f as AdditionalSessionFieldsOutput, c as AdditionalUserFieldsInput, d as AdditionalUserFieldsOutput, j as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, h as InferPluginTypes, g as InferSession, I as InferUser, P as PluginSchema, R as RateLimit, S as SecondaryStorage, W as Where, i as init } from './auth-CbhcAHOF.cjs';
|
|
3
|
+
import { U as UnionToIntersection, H as HasRequiredKeys, P as Prettify, c as StripEmptyObjects, L as LiteralString, S as Session, a as User } from './index-CGq2kTts.cjs';
|
|
4
|
+
export { D as DeepPartial, b as LiteralUnion, R as RequiredKeysOf, W as WithoutEmpty } from './index-CGq2kTts.cjs';
|
|
5
5
|
import { BetterFetchOption, BetterFetchResponse, BetterFetch, BetterFetchPlugin } from '@better-fetch/fetch';
|
|
6
6
|
import { WritableAtom, Atom } from 'nanostores';
|
|
7
7
|
import { Endpoint, Context } from 'better-call';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as BetterAuthPlugin, a as Auth, Q as InferFieldsInputClient, N as InferFieldsOutput } from './auth-
|
|
2
|
-
export { A as Adapter, e as AdditionalSessionFieldsInput, f as AdditionalSessionFieldsOutput, c as AdditionalUserFieldsInput, d as AdditionalUserFieldsOutput, j as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, h as InferPluginTypes, g as InferSession, I as InferUser, P as PluginSchema, R as RateLimit, S as SecondaryStorage, W as Where, i as init } from './auth-
|
|
3
|
-
import { U as UnionToIntersection, H as HasRequiredKeys, P as Prettify, c as StripEmptyObjects, L as LiteralString, S as Session, a as User } from './index-
|
|
4
|
-
export { D as DeepPartial, b as LiteralUnion, R as RequiredKeysOf, W as WithoutEmpty } from './index-
|
|
1
|
+
import { k as BetterAuthPlugin, a as Auth, Q as InferFieldsInputClient, N as InferFieldsOutput } from './auth-NHujeJMf.js';
|
|
2
|
+
export { A as Adapter, e as AdditionalSessionFieldsInput, f as AdditionalSessionFieldsOutput, c as AdditionalUserFieldsInput, d as AdditionalUserFieldsOutput, j as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, h as InferPluginTypes, g as InferSession, I as InferUser, P as PluginSchema, R as RateLimit, S as SecondaryStorage, W as Where, i as init } from './auth-NHujeJMf.js';
|
|
3
|
+
import { U as UnionToIntersection, H as HasRequiredKeys, P as Prettify, c as StripEmptyObjects, L as LiteralString, S as Session, a as User } from './index-CGq2kTts.js';
|
|
4
|
+
export { D as DeepPartial, b as LiteralUnion, R as RequiredKeysOf, W as WithoutEmpty } from './index-CGq2kTts.js';
|
|
5
5
|
import { BetterFetchOption, BetterFetchResponse, BetterFetch, BetterFetchPlugin } from '@better-fetch/fetch';
|
|
6
6
|
import { WritableAtom, Atom } from 'nanostores';
|
|
7
7
|
import { Endpoint, Context } from 'better-call';
|
package/dist/vue.d.cts
CHANGED
|
@@ -3,8 +3,8 @@ import * as zod from 'zod';
|
|
|
3
3
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
4
4
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
5
5
|
import { ClientOptions, InferClientAPI, InferActions, InferSessionFromClient, InferUserFromClient, BetterAuthClientPlugin, IsSignal } from './types.cjs';
|
|
6
|
-
import { U as UnionToIntersection$1 } from './index-
|
|
7
|
-
import './auth-
|
|
6
|
+
import { U as UnionToIntersection$1 } from './index-CGq2kTts.cjs';
|
|
7
|
+
import './auth-CbhcAHOF.cjs';
|
|
8
8
|
import 'node_modules/better-call/dist/router-Bn7zn81P';
|
|
9
9
|
import 'kysely';
|
|
10
10
|
import 'better-call';
|
package/dist/vue.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import * as zod from 'zod';
|
|
|
3
3
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
4
4
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
5
5
|
import { ClientOptions, InferClientAPI, InferActions, InferSessionFromClient, InferUserFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
6
|
-
import { U as UnionToIntersection$1 } from './index-
|
|
7
|
-
import './auth-
|
|
6
|
+
import { U as UnionToIntersection$1 } from './index-CGq2kTts.js';
|
|
7
|
+
import './auth-NHujeJMf.js';
|
|
8
8
|
import 'node_modules/better-call/dist/router-Bn7zn81P';
|
|
9
9
|
import 'kysely';
|
|
10
10
|
import 'better-call';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-auth",
|
|
3
|
-
"version": "0.7.5-beta.
|
|
3
|
+
"version": "0.7.5-beta.7",
|
|
4
4
|
"description": "The most comprehensive authentication library for TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
"happy-dom": "^15.7.4",
|
|
357
357
|
"hono": "^4.5.4",
|
|
358
358
|
"listhen": "^1.7.2",
|
|
359
|
-
"mongodb": "^6.
|
|
359
|
+
"mongodb": "^6.10.0",
|
|
360
360
|
"mysql2": "^3.11.0",
|
|
361
361
|
"next": "^14.2.8",
|
|
362
362
|
"oauth2-mock-server": "^7.1.2",
|
|
@@ -18,23 +18,23 @@ declare const accountSchema: z.ZodObject<{
|
|
|
18
18
|
password: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
id: string;
|
|
21
|
+
userId: string;
|
|
21
22
|
providerId: string;
|
|
22
23
|
accountId: string;
|
|
23
|
-
|
|
24
|
+
expiresAt?: Date | null | undefined;
|
|
24
25
|
accessToken?: string | null | undefined;
|
|
25
26
|
refreshToken?: string | null | undefined;
|
|
26
27
|
idToken?: string | null | undefined;
|
|
27
|
-
expiresAt?: Date | null | undefined;
|
|
28
28
|
password?: string | null | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
id: string;
|
|
31
|
+
userId: string;
|
|
31
32
|
providerId: string;
|
|
32
33
|
accountId: string;
|
|
33
|
-
|
|
34
|
+
expiresAt?: Date | null | undefined;
|
|
34
35
|
accessToken?: string | null | undefined;
|
|
35
36
|
refreshToken?: string | null | undefined;
|
|
36
37
|
idToken?: string | null | undefined;
|
|
37
|
-
expiresAt?: Date | null | undefined;
|
|
38
38
|
password?: string | null | undefined;
|
|
39
39
|
}>;
|
|
40
40
|
declare const userSchema: z.ZodObject<{
|
|
@@ -18,23 +18,23 @@ declare const accountSchema: z.ZodObject<{
|
|
|
18
18
|
password: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
id: string;
|
|
21
|
+
userId: string;
|
|
21
22
|
providerId: string;
|
|
22
23
|
accountId: string;
|
|
23
|
-
|
|
24
|
+
expiresAt?: Date | null | undefined;
|
|
24
25
|
accessToken?: string | null | undefined;
|
|
25
26
|
refreshToken?: string | null | undefined;
|
|
26
27
|
idToken?: string | null | undefined;
|
|
27
|
-
expiresAt?: Date | null | undefined;
|
|
28
28
|
password?: string | null | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
id: string;
|
|
31
|
+
userId: string;
|
|
31
32
|
providerId: string;
|
|
32
33
|
accountId: string;
|
|
33
|
-
|
|
34
|
+
expiresAt?: Date | null | undefined;
|
|
34
35
|
accessToken?: string | null | undefined;
|
|
35
36
|
refreshToken?: string | null | undefined;
|
|
36
37
|
idToken?: string | null | undefined;
|
|
37
|
-
expiresAt?: Date | null | undefined;
|
|
38
38
|
password?: string | null | undefined;
|
|
39
39
|
}>;
|
|
40
40
|
declare const userSchema: z.ZodObject<{
|