better-auth 0.2.1-beta.1 → 0.2.2
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/adapter-D-m9-hQp.d.ts +54 -0
- package/dist/adapters.d.ts +38 -0
- package/dist/adapters.js +1 -0
- package/dist/api.d.ts +4 -2
- package/dist/client/plugins.d.ts +7 -5
- package/dist/client.d.ts +5 -3
- package/dist/{index-BRJmEDAK.d.ts → index-D_ohe9r9.d.ts} +4 -53
- package/dist/{index-BGXFHT_O.d.ts → index-DsEvbKjm.d.ts} +2 -2
- package/dist/index.d.ts +6 -4
- package/dist/next-js.d.ts +4 -2
- package/dist/node.d.ts +6 -4
- package/dist/plugins.d.ts +8 -6
- package/dist/react.d.ts +5 -3
- package/dist/schema-D9o3OF80.d.ts +88 -0
- package/dist/social.d.ts +742 -3
- package/dist/solid-start.d.ts +6 -4
- package/dist/solid.d.ts +5 -3
- package/dist/svelte-kit.d.ts +6 -4
- package/dist/svelte.d.ts +5 -3
- package/dist/types.d.ts +5 -3
- package/dist/utils.d.ts +7 -5
- package/dist/vue.d.ts +5 -3
- package/package.json +2 -1
- package/dist/index-CE92ti2Z.d.ts +0 -827
package/dist/solid-start.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { d as Auth } from './index-
|
|
1
|
+
import { d as Auth } from './index-D_ohe9r9.js';
|
|
2
2
|
import 'kysely';
|
|
3
|
-
import './
|
|
4
|
-
import 'arctic';
|
|
3
|
+
import './schema-D9o3OF80.js';
|
|
5
4
|
import 'zod';
|
|
6
|
-
import './helper-C1ihmerM.js';
|
|
7
5
|
import 'better-call';
|
|
6
|
+
import './helper-C1ihmerM.js';
|
|
7
|
+
import './social.js';
|
|
8
|
+
import 'arctic';
|
|
9
|
+
import './adapter-D-m9-hQp.js';
|
|
8
10
|
|
|
9
11
|
declare function toSolidStartHandler(auth: Auth | Auth["handler"]): {
|
|
10
12
|
GET: (event: {
|
package/dist/solid.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
2
|
-
import { B as BetterAuthPlugin, F as FieldAttribute, I as InferFieldOutput } from './index-
|
|
2
|
+
import { B as BetterAuthPlugin, F as FieldAttribute, I as InferFieldOutput } from './index-D_ohe9r9.js';
|
|
3
3
|
import { U as UnionToIntersection, P as Prettify } from './helper-C1ihmerM.js';
|
|
4
4
|
import { ClientOptions, InferClientAPI, InferActions, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import 'kysely';
|
|
7
|
-
import './
|
|
8
|
-
import 'arctic';
|
|
7
|
+
import './schema-D9o3OF80.js';
|
|
9
8
|
import 'zod';
|
|
10
9
|
import 'better-call';
|
|
10
|
+
import './social.js';
|
|
11
|
+
import 'arctic';
|
|
12
|
+
import './adapter-D-m9-hQp.js';
|
|
11
13
|
import 'nanostores';
|
|
12
14
|
|
|
13
15
|
type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends BetterAuthClientPlugin ? Plugin["getAtoms"] extends (fetch: any) => infer Atoms ? Atoms extends Record<string, any> ? {
|
package/dist/svelte-kit.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { d as Auth, e as BetterAuthOptions } from './index-
|
|
1
|
+
import { d as Auth, e as BetterAuthOptions } from './index-D_ohe9r9.js';
|
|
2
2
|
import 'kysely';
|
|
3
|
-
import './
|
|
4
|
-
import 'arctic';
|
|
3
|
+
import './schema-D9o3OF80.js';
|
|
5
4
|
import 'zod';
|
|
6
|
-
import './helper-C1ihmerM.js';
|
|
7
5
|
import 'better-call';
|
|
6
|
+
import './helper-C1ihmerM.js';
|
|
7
|
+
import './social.js';
|
|
8
|
+
import 'arctic';
|
|
9
|
+
import './adapter-D-m9-hQp.js';
|
|
8
10
|
|
|
9
11
|
declare const toSvelteKitHandler: (auth: Auth) => (event: {
|
|
10
12
|
request: Request;
|
package/dist/svelte.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import * as nanostores from 'nanostores';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
|
-
import { B as BetterAuthPlugin, F as FieldAttribute, I as InferFieldOutput } from './index-
|
|
3
|
+
import { B as BetterAuthPlugin, F as FieldAttribute, I as InferFieldOutput } from './index-D_ohe9r9.js';
|
|
4
4
|
import { U as UnionToIntersection, P as Prettify } from './helper-C1ihmerM.js';
|
|
5
5
|
import { ClientOptions, InferClientAPI, InferActions, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
6
6
|
import 'kysely';
|
|
7
|
-
import './
|
|
8
|
-
import 'arctic';
|
|
7
|
+
import './schema-D9o3OF80.js';
|
|
9
8
|
import 'zod';
|
|
10
9
|
import 'better-call';
|
|
10
|
+
import './social.js';
|
|
11
|
+
import 'arctic';
|
|
12
|
+
import './adapter-D-m9-hQp.js';
|
|
11
13
|
|
|
12
14
|
type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends BetterAuthClientPlugin ? Plugin["getAtoms"] extends (fetch: any) => infer Atoms ? Atoms extends Record<string, any> ? {
|
|
13
15
|
[key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: () => Atoms[key];
|
package/dist/types.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { B as BetterAuthPlugin, d as Auth, m as InferSession, n as InferUser } from './index-
|
|
2
|
-
export {
|
|
1
|
+
import { B as BetterAuthPlugin, d as Auth, m as InferSession, n as InferUser } from './index-D_ohe9r9.js';
|
|
2
|
+
export { f as AuthContext, e as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, q as InferPluginTypes, P as PluginSchema, R as RateLimit, r as init } from './index-D_ohe9r9.js';
|
|
3
3
|
import { U as UnionToIntersection, H as HasRequiredKeys, P as Prettify, L as LiteralString } from './helper-C1ihmerM.js';
|
|
4
4
|
export { a as LiteralUnion, R as RequiredKeysOf, W as WithoutEmpty } from './helper-C1ihmerM.js';
|
|
5
|
-
export {
|
|
5
|
+
export { OAuthProvider, OAuthProviderList, ProviderOptions } from './social.js';
|
|
6
|
+
export { A as Adapter, S as SessionAdapter, W as Where } from './adapter-D-m9-hQp.js';
|
|
6
7
|
import { BetterFetchOption, BetterFetchResponse, BetterFetch, BetterFetchPlugin } from '@better-fetch/fetch';
|
|
7
8
|
import { Atom } from 'nanostores';
|
|
8
9
|
import { Endpoint, Context } from 'better-call';
|
|
10
|
+
export { S as Session, U as User } from './schema-D9o3OF80.js';
|
|
9
11
|
import 'kysely';
|
|
10
12
|
import 'zod';
|
|
11
13
|
import 'arctic';
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { f as AuthContext, G as GenericEndpointContext } from './index-
|
|
2
|
-
export { i as BetterAuthCookies, h as createCookieGetter, k as createLogger, j as deleteSessionCookie, g as getCookies, l as logger, p as parseSetCookieHeader, s as setSessionCookie } from './index-
|
|
1
|
+
import { f as AuthContext, G as GenericEndpointContext } from './index-D_ohe9r9.js';
|
|
2
|
+
export { i as BetterAuthCookies, h as createCookieGetter, k as createLogger, j as deleteSessionCookie, g as getCookies, l as logger, p as parseSetCookieHeader, s as setSessionCookie } from './index-D_ohe9r9.js';
|
|
3
3
|
export { H as HIDE_METADATA } from './hide-metadata-DEHJp1rk.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import 'kysely';
|
|
6
|
-
import './
|
|
7
|
-
import 'arctic';
|
|
8
|
-
import './helper-C1ihmerM.js';
|
|
6
|
+
import './schema-D9o3OF80.js';
|
|
9
7
|
import 'better-call';
|
|
8
|
+
import './helper-C1ihmerM.js';
|
|
9
|
+
import './social.js';
|
|
10
|
+
import 'arctic';
|
|
11
|
+
import './adapter-D-m9-hQp.js';
|
|
10
12
|
|
|
11
13
|
declare const shimContext: <T extends Record<string, any>>(originalObject: T, newContext: Record<string, any>) => T;
|
|
12
14
|
declare const shimEndpoint: (ctx: AuthContext, value: any) => (context: any) => Promise<any>;
|
package/dist/vue.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
2
|
-
import { B as BetterAuthPlugin, F as FieldAttribute, I as InferFieldOutput } from './index-
|
|
2
|
+
import { B as BetterAuthPlugin, F as FieldAttribute, I as InferFieldOutput } from './index-D_ohe9r9.js';
|
|
3
3
|
import { U as UnionToIntersection, P as Prettify } from './helper-C1ihmerM.js';
|
|
4
4
|
import { ClientOptions, InferClientAPI, InferActions, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
5
5
|
import { Ref, DeepReadonly } from 'vue';
|
|
6
6
|
import 'kysely';
|
|
7
|
-
import './
|
|
8
|
-
import 'arctic';
|
|
7
|
+
import './schema-D9o3OF80.js';
|
|
9
8
|
import 'zod';
|
|
10
9
|
import 'better-call';
|
|
10
|
+
import './social.js';
|
|
11
|
+
import 'arctic';
|
|
12
|
+
import './adapter-D-m9-hQp.js';
|
|
11
13
|
import 'nanostores';
|
|
12
14
|
|
|
13
15
|
type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends BetterAuthClientPlugin ? Plugin["getAtoms"] extends (fetch: any) => infer Atoms ? Atoms extends Record<string, any> ? {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-auth",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "The most comprehensive authentication library for TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"./next-js": "./dist/next-js.js",
|
|
38
38
|
"./package.json": "./package.json",
|
|
39
39
|
"./node": "./dist/node.js",
|
|
40
|
+
"./adapters": "./dist/adapters.js",
|
|
40
41
|
"./utils": "./dist/utils.js"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|