better-auth 0.0.6 → 0.0.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/cli.js +3 -806
- package/dist/cli.js.map +1 -1
- package/dist/client/plugins.d.ts +62 -62
- package/dist/{client-CaF9eUcv.d.ts → client-A2Mt04KQ.d.ts} +34 -34
- package/dist/client.d.ts +95 -95
- package/dist/{index-CGeV0d2g.d.ts → index-W5nXvJ-p.d.ts} +12 -12
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -805
- package/dist/index.js.map +1 -1
- package/dist/next-js.d.ts +1 -1
- package/dist/plugins.d.ts +12 -12
- package/dist/react.d.ts +2 -2
- package/dist/solid-start.d.ts +1 -1
- package/dist/solid.d.ts +2 -2
- package/dist/svelte-kit.d.ts +1 -1
- package/dist/svelte.d.ts +2 -2
- package/dist/{type-tYx_kmry.d.ts → type-DbMyI3b5.d.ts} +297 -297
- package/dist/types.d.ts +1 -1
- package/dist/vue.d.ts +2 -2
- package/package.json +1 -1
package/dist/next-js.d.ts
CHANGED
package/dist/plugins.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { T as TwoFactorOptions, U as UserWithTwoFactor } from './client-
|
|
2
|
-
export { O as OrganizationOptions, a as Passkey, P as PasskeyOptions, W as WebAuthnCookieType, g as getPasskeyActions, o as organization, b as passkey, p as passkeyClient, t as twoFactorClient } from './client-
|
|
1
|
+
import { T as TwoFactorOptions, U as UserWithTwoFactor } from './client-A2Mt04KQ.js';
|
|
2
|
+
export { O as OrganizationOptions, a as Passkey, P as PasskeyOptions, W as WebAuthnCookieType, g as getPasskeyActions, o as organization, b as passkey, p as passkeyClient, t as twoFactorClient } from './client-A2Mt04KQ.js';
|
|
3
3
|
export { i as ac } from './index-Dg4eEXZW.js';
|
|
4
|
-
import { G as GenericEndpointContext } from './index-
|
|
4
|
+
import { G as GenericEndpointContext } from './index-W5nXvJ-p.js';
|
|
5
5
|
import * as better_call from 'better-call';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import 'nanostores';
|
|
8
|
-
import './type-
|
|
8
|
+
import './type-DbMyI3b5.js';
|
|
9
9
|
import '@better-fetch/fetch';
|
|
10
10
|
import './helper-B5_2Vzba.js';
|
|
11
11
|
import '@nanostores/react';
|
|
@@ -806,19 +806,19 @@ declare const username: () => {
|
|
|
806
806
|
image: z.ZodOptional<z.ZodString>;
|
|
807
807
|
callbackURL: z.ZodOptional<z.ZodString>;
|
|
808
808
|
}, "strip", z.ZodTypeAny, {
|
|
809
|
+
password: string;
|
|
809
810
|
name: string;
|
|
810
811
|
email: string;
|
|
811
|
-
password: string;
|
|
812
812
|
username: string;
|
|
813
|
-
callbackURL?: string | undefined;
|
|
814
813
|
image?: string | undefined;
|
|
814
|
+
callbackURL?: string | undefined;
|
|
815
815
|
}, {
|
|
816
|
+
password: string;
|
|
816
817
|
name: string;
|
|
817
818
|
email: string;
|
|
818
|
-
password: string;
|
|
819
819
|
username: string;
|
|
820
|
-
callbackURL?: string | undefined;
|
|
821
820
|
image?: string | undefined;
|
|
821
|
+
callbackURL?: string | undefined;
|
|
822
822
|
}>;
|
|
823
823
|
}>): Promise<{
|
|
824
824
|
user: {
|
|
@@ -849,19 +849,19 @@ declare const username: () => {
|
|
|
849
849
|
image: z.ZodOptional<z.ZodString>;
|
|
850
850
|
callbackURL: z.ZodOptional<z.ZodString>;
|
|
851
851
|
}, "strip", z.ZodTypeAny, {
|
|
852
|
+
password: string;
|
|
852
853
|
name: string;
|
|
853
854
|
email: string;
|
|
854
|
-
password: string;
|
|
855
855
|
username: string;
|
|
856
|
-
callbackURL?: string | undefined;
|
|
857
856
|
image?: string | undefined;
|
|
857
|
+
callbackURL?: string | undefined;
|
|
858
858
|
}, {
|
|
859
|
+
password: string;
|
|
859
860
|
name: string;
|
|
860
861
|
email: string;
|
|
861
|
-
password: string;
|
|
862
862
|
username: string;
|
|
863
|
-
callbackURL?: string | undefined;
|
|
864
863
|
image?: string | undefined;
|
|
864
|
+
callbackURL?: string | undefined;
|
|
865
865
|
}>;
|
|
866
866
|
};
|
|
867
867
|
method: better_call.Method | better_call.Method[];
|
package/dist/react.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'nanostores';
|
|
2
|
-
import './index-
|
|
2
|
+
import './index-W5nXvJ-p.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import './helper-B5_2Vzba.js';
|
|
5
|
-
export { c as createAuthClient, u as useAuthStore } from './type-
|
|
5
|
+
export { c as createAuthClient, u as useAuthStore } from './type-DbMyI3b5.js';
|
|
6
6
|
import '@better-fetch/fetch';
|
|
7
7
|
import 'better-call';
|
|
8
8
|
import '@nanostores/react';
|
package/dist/solid-start.d.ts
CHANGED
package/dist/solid.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as nanostores from 'nanostores';
|
|
2
|
-
import { B as BetterAuthPlugin, a as BetterAuthOptions, F as FieldAttribute, I as InferFieldOutput, A as Auth } from './index-
|
|
2
|
+
import { B as BetterAuthPlugin, a as BetterAuthOptions, F as FieldAttribute, I as InferFieldOutput, A as Auth } from './index-W5nXvJ-p.js';
|
|
3
3
|
import * as zod from 'zod';
|
|
4
4
|
import { U as UnionToIntersection, H as HasRequiredKeys, P as Prettify } from './helper-B5_2Vzba.js';
|
|
5
|
-
import { C as ClientOptions, P as PathToObject, A as AuthPlugin } from './type-
|
|
5
|
+
import { C as ClientOptions, P as PathToObject, A as AuthPlugin } from './type-DbMyI3b5.js';
|
|
6
6
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
7
7
|
import * as better_call from 'better-call';
|
|
8
8
|
import * as SolidJS from 'solid-js';
|
package/dist/svelte-kit.d.ts
CHANGED
package/dist/svelte.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as nanostores from 'nanostores';
|
|
2
|
-
import { B as BetterAuthPlugin, a as BetterAuthOptions, F as FieldAttribute, I as InferFieldOutput, A as Auth } from './index-
|
|
2
|
+
import { B as BetterAuthPlugin, a as BetterAuthOptions, F as FieldAttribute, I as InferFieldOutput, A as Auth } from './index-W5nXvJ-p.js';
|
|
3
3
|
import * as zod from 'zod';
|
|
4
4
|
import { U as UnionToIntersection, H as HasRequiredKeys, P as Prettify } from './helper-B5_2Vzba.js';
|
|
5
|
-
import { C as ClientOptions, P as PathToObject, A as AuthPlugin } from './type-
|
|
5
|
+
import { C as ClientOptions, P as PathToObject, A as AuthPlugin } from './type-DbMyI3b5.js';
|
|
6
6
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
7
7
|
import * as better_call from 'better-call';
|
|
8
8
|
import './schema-BOszzrbQ.js';
|