faire-auth 1.0.2 → 1.0.4
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-adapter/index.d.cts +1 -1
- package/dist/adapters/drizzle-adapter/index.d.mts +1 -1
- package/dist/adapters/index.d.cts +1 -1
- package/dist/adapters/index.d.mts +1 -1
- package/dist/adapters/kysely-adapter/index.d.cts +1 -1
- package/dist/adapters/kysely-adapter/index.d.mts +1 -1
- package/dist/adapters/memory-adapter/index.d.cts +3 -3
- package/dist/adapters/memory-adapter/index.d.mts +3 -3
- package/dist/adapters/mongodb-adapter/index.d.cts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.mts +1 -1
- package/dist/adapters/prisma-adapter/index.d.cts +1 -1
- package/dist/adapters/prisma-adapter/index.d.mts +1 -1
- package/dist/adapters/test.d.cts +1 -1
- package/dist/adapters/test.d.mts +1 -1
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/api/middleware/index.d.cts +3 -3
- package/dist/api/middleware/index.d.mts +3 -3
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/lynx/index.d.cts +9 -9
- package/dist/client/lynx/index.d.mts +26 -26
- package/dist/client/plugins/index.d.cts +1 -1
- package/dist/client/plugins/index.d.mts +1 -1
- package/dist/client/react/index.d.cts +26 -26
- package/dist/client/react/index.d.mts +26 -26
- package/dist/client/solid/index.d.cts +6 -6
- package/dist/client/solid/index.d.mts +6 -6
- package/dist/client/svelte/index.d.cts +26 -26
- package/dist/client/svelte/index.d.mts +26 -26
- package/dist/client/vue/index.d.cts +24 -24
- package/dist/client/vue/index.d.mts +27 -27
- package/dist/crypto/index.d.cts +2 -2
- package/dist/db/index.d.cts +1 -1
- package/dist/db/index.d.mts +1 -1
- package/dist/{index-Dfgobqa-.d.mts → index--DLiUhEn.d.mts} +6 -6
- package/dist/{index-C0b8eC8h.d.mts → index-B4bqEDYG.d.mts} +15 -15
- package/dist/index-Boa0SV4h.d.cts +13350 -0
- package/dist/index-Bykgiq3o.d.cts +13350 -0
- package/dist/{index-Bw8dyZTc.d.cts → index-ClFGA8tb.d.mts} +2 -2
- package/dist/{index-4PEF72Mq.d.cts → index-ClOM0wFf.d.cts} +20 -20
- package/dist/{index-CrmLTEj8.d.mts → index-CsxNfGAV.d.mts} +624 -624
- package/dist/index-DKnO_Zfm.d.cts +992 -0
- package/dist/index-DRYO4mGd.d.cts +33 -0
- package/dist/index-Dsua4U8w.d.cts +33 -0
- package/dist/{index-BCzB3uDD.d.cts → index-DxXFCG2_.d.mts} +354 -354
- package/dist/index-gtCVvDvC.d.mts +992 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/integrations/next-js.d.cts +3 -3
- package/dist/integrations/next-js.d.mts +1 -1
- package/dist/integrations/node.d.cts +1 -1
- package/dist/integrations/node.d.mts +1 -1
- package/dist/integrations/react-start.d.cts +5 -5
- package/dist/integrations/react-start.d.mts +1 -1
- package/dist/integrations/svelte-kit.d.cts +5 -5
- package/dist/integrations/svelte-kit.d.mts +5 -5
- package/dist/oauth2/index.d.cts +1 -1
- package/dist/oauth2/index.d.mts +1 -1
- package/dist/plugins/bearer/index.d.cts +2 -2
- package/dist/plugins/bearer/index.d.mts +2 -2
- package/dist/plugins/index.d.cts +267 -267
- package/dist/plugins/index.d.mts +267 -267
- package/dist/plugins/passkey/index.d.cts +2 -2
- package/dist/plugins/passkey/index.d.mts +2 -2
- package/dist/test-utils/index.cjs +1 -1
- package/dist/test-utils/index.d.cts +993 -993
- package/dist/test-utils/index.d.mts +997 -997
- package/dist/test-utils/index.mjs +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/utils/cookies.d.cts +1 -1
- package/dist/utils/cookies.d.mts +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -697,7 +697,7 @@ const faireAuth = (options) => {
|
|
|
697
697
|
return {
|
|
698
698
|
handler: (request, Env, executionCtx) => {
|
|
699
699
|
const cfCtx = getCloudflareContext();
|
|
700
|
-
return app.fetch(request,
|
|
700
|
+
return app.fetch(request, Env ?? cfCtx?.env ?? __faire_auth_core_env.ENV, executionCtx ?? cfCtx?.ctx);
|
|
701
701
|
},
|
|
702
702
|
app,
|
|
703
703
|
api,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as Client, A as logger, C as InternalLogger, Ct as InferPluginRateLimit, D as createLogger, E as Logger, F as DTO, H as InferApp, I as FaireAuthOptions, L as FaireAuthRateLimitOptions, M as generateState, N as parseState, O as generateId, P as CustomRules, Q as CamelCase, R as Hooks, S as ENV, St as InferPluginMiddleware, T as LogLevel, U as InferClient, V as InferAPI, Z as AtomListener, _ as MissingDependencyError, _t as FaireAuthPlugin, a as InferPluginTypes, an as AuthContext, at as InferAdditionalAsClient, b as createTelemetry, bt as InferPluginErrorCodes, c as Models, cn as Adapter, ct as InferPluginsFromClient, d as WithJsDoc, dn as DBAdapter, dt as IsSignal, et as ClientOptions, f as defineOptions, fn as DBAdapterInstance, ft as RevalidateOptions, g as FaireAuthError, gn as Where, gt as AuthPluginSchema, h as APIError, hn as TransactionAdapter, i as AdditionalUserFieldsOutput, it as InferActions, j as mergeHeaders, k as generateRandomString, l as RateLimit, ln as AdapterInstance, lt as InferSessionFromClient, mn as DBTransactionAdapter, mt as Store, n as AdditionalSessionFieldsOutput, nn as AuthFactory, nt as FaireAuthClientPlugin, o as InferSession, on as init, ot as InferAdditionalFromClient, p as faireAuth, pn as DBAdapterSchemaCreation, pt as SessionQueryParams, r as AdditionalUserFieldsInput, rn as AuthProperties, rt as Inc, s as InferUser, sn as getCurrentAdapter, st as InferErrorCodes, t as AdditionalSessionFieldsInput, tn as AuthEndpoint, tt as CreateSchemaType, u as Auth, un as AdapterSchemaCreation, ut as InferUserFromClient, v as OpenAPIHono, vt as InferOptionSchema, w as LogHandlerParams, x as TelemetryEvent, xt as InferPluginHooks, y as getTelemetryAuthConfig, yt as InferPluginDTO, z as Middleware } from "./index-
|
|
1
|
+
import { $ as Client, A as logger, C as InternalLogger, Ct as InferPluginRateLimit, D as createLogger, E as Logger, F as DTO, H as InferApp, I as FaireAuthOptions, L as FaireAuthRateLimitOptions, M as generateState, N as parseState, O as generateId, P as CustomRules, Q as CamelCase, R as Hooks, S as ENV, St as InferPluginMiddleware, T as LogLevel, U as InferClient, V as InferAPI, Z as AtomListener, _ as MissingDependencyError, _t as FaireAuthPlugin, a as InferPluginTypes, an as AuthContext, at as InferAdditionalAsClient, b as createTelemetry, bt as InferPluginErrorCodes, c as Models, cn as Adapter, ct as InferPluginsFromClient, d as WithJsDoc, dn as DBAdapter, dt as IsSignal, et as ClientOptions, f as defineOptions, fn as DBAdapterInstance, ft as RevalidateOptions, g as FaireAuthError, gn as Where, gt as AuthPluginSchema, h as APIError, hn as TransactionAdapter, i as AdditionalUserFieldsOutput, it as InferActions, j as mergeHeaders, k as generateRandomString, l as RateLimit, ln as AdapterInstance, lt as InferSessionFromClient, mn as DBTransactionAdapter, mt as Store, n as AdditionalSessionFieldsOutput, nn as AuthFactory, nt as FaireAuthClientPlugin, o as InferSession, on as init, ot as InferAdditionalFromClient, p as faireAuth, pn as DBAdapterSchemaCreation, pt as SessionQueryParams, r as AdditionalUserFieldsInput, rn as AuthProperties, rt as Inc, s as InferUser, sn as getCurrentAdapter, st as InferErrorCodes, t as AdditionalSessionFieldsInput, tn as AuthEndpoint, tt as CreateSchemaType, u as Auth, un as AdapterSchemaCreation, ut as InferUserFromClient, v as OpenAPIHono, vt as InferOptionSchema, w as LogHandlerParams, x as TelemetryEvent, xt as InferPluginHooks, y as getTelemetryAuthConfig, yt as InferPluginDTO, z as Middleware } from "./index-Boa0SV4h.cjs";
|
|
2
2
|
import { n as Execute, r as ToExecFull, t as ContextVars } from "./hono-DOM31WQz.cjs";
|
|
3
3
|
export * from "zod";
|
|
4
4
|
export * from "zod/v4/core";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as Client, A as logger, C as InternalLogger, Ct as InferPluginRateLimit, D as createLogger, E as Logger, F as DTO, H as InferApp, I as FaireAuthOptions, L as FaireAuthRateLimitOptions, M as generateState, N as parseState, O as generateId, P as CustomRules, Q as CamelCase, R as Hooks, S as ENV, St as InferPluginMiddleware, T as LogLevel, U as InferClient, V as InferAPI, Z as AtomListener, _ as MissingDependencyError, _t as FaireAuthPlugin, a as InferPluginTypes, an as AuthContext, at as InferAdditionalAsClient, b as createTelemetry, bt as InferPluginErrorCodes, c as Models, cn as Adapter, ct as InferPluginsFromClient, d as WithJsDoc, dn as DBAdapter, dt as IsSignal, et as ClientOptions, f as defineOptions, fn as DBAdapterInstance, ft as RevalidateOptions, g as FaireAuthError, gn as Where, gt as AuthPluginSchema, h as APIError, hn as TransactionAdapter, i as AdditionalUserFieldsOutput, it as InferActions, j as mergeHeaders, k as generateRandomString, l as RateLimit, ln as AdapterInstance, lt as InferSessionFromClient, mn as DBTransactionAdapter, mt as Store, n as AdditionalSessionFieldsOutput, nn as AuthFactory, nt as FaireAuthClientPlugin, o as InferSession, on as init, ot as InferAdditionalFromClient, p as faireAuth, pn as DBAdapterSchemaCreation, pt as SessionQueryParams, r as AdditionalUserFieldsInput, rn as AuthProperties, rt as Inc, s as InferUser, sn as getCurrentAdapter, st as InferErrorCodes, t as AdditionalSessionFieldsInput, tn as AuthEndpoint, tt as CreateSchemaType, u as Auth, un as AdapterSchemaCreation, ut as InferUserFromClient, v as OpenAPIHono, vt as InferOptionSchema, w as LogHandlerParams, x as TelemetryEvent, xt as InferPluginHooks, y as getTelemetryAuthConfig, yt as InferPluginDTO, z as Middleware } from "./index-
|
|
1
|
+
import { $ as Client, A as logger, C as InternalLogger, Ct as InferPluginRateLimit, D as createLogger, E as Logger, F as DTO, H as InferApp, I as FaireAuthOptions, L as FaireAuthRateLimitOptions, M as generateState, N as parseState, O as generateId, P as CustomRules, Q as CamelCase, R as Hooks, S as ENV, St as InferPluginMiddleware, T as LogLevel, U as InferClient, V as InferAPI, Z as AtomListener, _ as MissingDependencyError, _t as FaireAuthPlugin, a as InferPluginTypes, an as AuthContext, at as InferAdditionalAsClient, b as createTelemetry, bt as InferPluginErrorCodes, c as Models, cn as Adapter, ct as InferPluginsFromClient, d as WithJsDoc, dn as DBAdapter, dt as IsSignal, et as ClientOptions, f as defineOptions, fn as DBAdapterInstance, ft as RevalidateOptions, g as FaireAuthError, gn as Where, gt as AuthPluginSchema, h as APIError, hn as TransactionAdapter, i as AdditionalUserFieldsOutput, it as InferActions, j as mergeHeaders, k as generateRandomString, l as RateLimit, ln as AdapterInstance, lt as InferSessionFromClient, mn as DBTransactionAdapter, mt as Store, n as AdditionalSessionFieldsOutput, nn as AuthFactory, nt as FaireAuthClientPlugin, o as InferSession, on as init, ot as InferAdditionalFromClient, p as faireAuth, pn as DBAdapterSchemaCreation, pt as SessionQueryParams, r as AdditionalUserFieldsInput, rn as AuthProperties, rt as Inc, s as InferUser, sn as getCurrentAdapter, st as InferErrorCodes, t as AdditionalSessionFieldsInput, tn as AuthEndpoint, tt as CreateSchemaType, u as Auth, un as AdapterSchemaCreation, ut as InferUserFromClient, v as OpenAPIHono, vt as InferOptionSchema, w as LogHandlerParams, x as TelemetryEvent, xt as InferPluginHooks, y as getTelemetryAuthConfig, yt as InferPluginDTO, z as Middleware } from "./index-DxXFCG2_.mjs";
|
|
2
2
|
import { n as Execute, r as ToExecFull, t as ContextVars } from "./hono-D0VqxVy1.mjs";
|
|
3
3
|
export * from "zod";
|
|
4
4
|
export * from "zod/v4/core";
|
package/dist/index.mjs
CHANGED
|
@@ -695,7 +695,7 @@ const faireAuth = (options) => {
|
|
|
695
695
|
return {
|
|
696
696
|
handler: (request, Env, executionCtx) => {
|
|
697
697
|
const cfCtx = getCloudflareContext();
|
|
698
|
-
return app.fetch(request,
|
|
698
|
+
return app.fetch(request, Env ?? cfCtx?.env ?? ENV$1, executionCtx ?? cfCtx?.ctx);
|
|
699
699
|
},
|
|
700
700
|
app,
|
|
701
701
|
api,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../index-
|
|
1
|
+
import "../index-Boa0SV4h.cjs";
|
|
2
2
|
import { t as ContextVars } from "../hono-DOM31WQz.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _faire_auth_core_types31 from "@faire-auth/core/types";
|
|
4
4
|
import * as hono31 from "hono";
|
|
5
5
|
|
|
6
6
|
//#region src/integrations/next-js.d.ts
|
|
@@ -15,7 +15,7 @@ declare const nextCookies: () => {
|
|
|
15
15
|
hooks: {
|
|
16
16
|
after: {
|
|
17
17
|
matcher: (_ctx: hono31.Context<ContextVars<any>, any, {}>) => true;
|
|
18
|
-
handler: (_authOptions:
|
|
18
|
+
handler: (_authOptions: _faire_auth_core_types31.FaireAuthOptions<any>) => (ctx: hono31.Context<ContextVars<object>, string, {}>) => Promise<void>;
|
|
19
19
|
}[];
|
|
20
20
|
};
|
|
21
21
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "../index-
|
|
1
|
+
import "../index-Boa0SV4h.cjs";
|
|
2
2
|
import { t as ContextVars } from "../hono-DOM31WQz.cjs";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as _faire_auth_core_types0 from "@faire-auth/core/types";
|
|
4
|
+
import * as hono0 from "hono";
|
|
5
5
|
|
|
6
6
|
//#region src/integrations/react-start.d.ts
|
|
7
7
|
declare const reactStartCookies: () => {
|
|
8
8
|
id: "react-start-cookies";
|
|
9
9
|
hooks: {
|
|
10
10
|
after: {
|
|
11
|
-
matcher: (_ctx:
|
|
12
|
-
handler: (_authOptions:
|
|
11
|
+
matcher: (_ctx: hono0.Context<ContextVars<any>, any, {}>) => true;
|
|
12
|
+
handler: (_authOptions: _faire_auth_core_types0.FaireAuthOptions<any>) => (ctx: hono0.Context<ContextVars<object>, string, {}>) => Promise<void>;
|
|
13
13
|
}[];
|
|
14
14
|
};
|
|
15
15
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as FaireAuthOptions$1 } from "../index-
|
|
1
|
+
import { I as FaireAuthOptions$1 } from "../index-Boa0SV4h.cjs";
|
|
2
2
|
import { t as ContextVars } from "../hono-DOM31WQz.cjs";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as _faire_auth_core_types34 from "@faire-auth/core/types";
|
|
4
|
+
import * as hono39 from "hono";
|
|
5
5
|
import { RequestEvent } from "@sveltejs/kit";
|
|
6
6
|
|
|
7
7
|
//#region src/integrations/svelte-kit.d.ts
|
|
@@ -33,8 +33,8 @@ declare const sveltekitCookies: (getRequestEvent: () => RequestEvent<Record<stri
|
|
|
33
33
|
id: "sveltekit-cookies";
|
|
34
34
|
hooks: {
|
|
35
35
|
after: {
|
|
36
|
-
matcher: (_ctx:
|
|
37
|
-
handler: (_authOptions:
|
|
36
|
+
matcher: (_ctx: hono39.Context<ContextVars<any>, any, {}>) => true;
|
|
37
|
+
handler: (_authOptions: _faire_auth_core_types34.FaireAuthOptions<any>) => (ctx: hono39.Context<ContextVars<object>, string, {}>) => Promise<void>;
|
|
38
38
|
}[];
|
|
39
39
|
};
|
|
40
40
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as FaireAuthOptions$1 } from "../index-
|
|
1
|
+
import { I as FaireAuthOptions$1 } from "../index-DxXFCG2_.mjs";
|
|
2
2
|
import { t as ContextVars } from "../hono-D0VqxVy1.mjs";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as hono33 from "hono";
|
|
4
|
+
import * as _faire_auth_core_types32 from "@faire-auth/core/types";
|
|
5
5
|
import { RequestEvent } from "@sveltejs/kit";
|
|
6
6
|
|
|
7
7
|
//#region src/integrations/svelte-kit.d.ts
|
|
@@ -33,8 +33,8 @@ declare const sveltekitCookies: (getRequestEvent: () => RequestEvent<Record<stri
|
|
|
33
33
|
id: "sveltekit-cookies";
|
|
34
34
|
hooks: {
|
|
35
35
|
after: {
|
|
36
|
-
matcher: (_ctx:
|
|
37
|
-
handler: (_authOptions:
|
|
36
|
+
matcher: (_ctx: hono33.Context<ContextVars<any>, any, {}>) => true;
|
|
37
|
+
handler: (_authOptions: _faire_auth_core_types32.FaireAuthOptions<any>) => (ctx: hono33.Context<ContextVars<object>, string, {}>) => Promise<void>;
|
|
38
38
|
}[];
|
|
39
39
|
};
|
|
40
40
|
};
|
package/dist/oauth2/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as FaireAuthOptions$1, M as generateState, N as parseState } from "../index-
|
|
1
|
+
import { I as FaireAuthOptions$1, M as generateState, N as parseState } from "../index-Boa0SV4h.cjs";
|
|
2
2
|
import { t as ContextVars } from "../hono-DOM31WQz.cjs";
|
|
3
3
|
import { ExK } from "@faire-auth/core/types";
|
|
4
4
|
import { Context, TypedResponse } from "hono";
|
package/dist/oauth2/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as FaireAuthOptions$1, M as generateState, N as parseState } from "../index-
|
|
1
|
+
import { I as FaireAuthOptions$1, M as generateState, N as parseState } from "../index-DxXFCG2_.mjs";
|
|
2
2
|
import { t as ContextVars } from "../hono-D0VqxVy1.mjs";
|
|
3
3
|
import { Context, TypedResponse } from "hono";
|
|
4
4
|
import { Account, Session, User } from "@faire-auth/core/db";
|