faire-auth 1.0.1 → 1.0.3
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 +15 -15
- 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 +19 -19
- package/dist/client/solid/index.d.cts +16 -16
- package/dist/client/solid/index.d.mts +16 -16
- 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 +22 -22
- package/dist/client/vue/index.d.mts +27 -27
- package/dist/crypto/index.d.cts +2 -2
- package/dist/crypto/index.d.mts +2 -2
- package/dist/db/index.d.cts +1 -1
- package/dist/db/index.d.mts +1 -1
- package/dist/{index-BfbDrljm.d.cts → index-BCTFWP_o.d.mts} +15 -15
- package/dist/{index-DCuvAh3N.d.mts → index-BVRfQy6L.d.mts} +20 -20
- package/dist/{index-ClFGA8tb.d.mts → index-Baarsq5J.d.mts} +6 -6
- package/dist/{index-w-IdIOQJ.d.cts → index-By364WbF.d.cts} +15 -15
- package/dist/{index-BC42NdCJ.d.mts → index-BzWwMgxr.d.cts} +4 -4
- package/dist/{index-Dsua4U8w.d.cts → index-CJD2yB-W.d.cts} +6 -6
- package/dist/{index-CL5oW5Uh.d.cts → index-CsWF3f7U.d.cts} +820 -820
- package/dist/{index-DK2ECcVe.d.mts → index-CzidsAyA.d.mts} +340 -340
- package/dist/{index-KQ5RLFjm.d.cts → index-DvW-GCcI.d.cts} +6 -6
- package/dist/{index-BNCikaaH.d.cts → index-f-5OJ9yV.d.cts} +365 -365
- package/dist/{index-BotKDRUI.d.mts → index-rFv8Hxld.d.mts} +791 -791
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/integrations/next-js.d.cts +5 -5
- package/dist/integrations/next-js.d.mts +5 -5
- 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 +5 -5
- 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 +7 -7
- package/dist/plugins/index.d.mts +262 -262
- package/dist/plugins/passkey/index.d.cts +2 -2
- package/dist/plugins/passkey/index.d.mts +2 -2
- package/dist/test-utils/index.d.cts +743 -743
- 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.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-CsWF3f7U.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-rFv8Hxld.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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../index-
|
|
1
|
+
import "../index-CsWF3f7U.cjs";
|
|
2
2
|
import { t as ContextVars } from "../hono-DOM31WQz.cjs";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as _faire_auth_core_types31 from "@faire-auth/core/types";
|
|
4
|
+
import * as hono31 from "hono";
|
|
5
5
|
|
|
6
6
|
//#region src/integrations/next-js.d.ts
|
|
7
7
|
declare function toNextJsHandler(auth: {
|
|
@@ -14,8 +14,8 @@ declare const nextCookies: () => {
|
|
|
14
14
|
id: "next-cookies";
|
|
15
15
|
hooks: {
|
|
16
16
|
after: {
|
|
17
|
-
matcher: (_ctx:
|
|
18
|
-
handler: (_authOptions:
|
|
17
|
+
matcher: (_ctx: hono31.Context<ContextVars<any>, any, {}>) => true;
|
|
18
|
+
handler: (_authOptions: _faire_auth_core_types31.FaireAuthOptions<any>) => (ctx: hono31.Context<ContextVars<object>, string, {}>) => Promise<void>;
|
|
19
19
|
}[];
|
|
20
20
|
};
|
|
21
21
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../index-
|
|
1
|
+
import "../index-rFv8Hxld.mjs";
|
|
2
2
|
import { t as ContextVars } from "../hono-D0VqxVy1.mjs";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as hono0 from "hono";
|
|
4
|
+
import * as _faire_auth_core_types0 from "@faire-auth/core/types";
|
|
5
5
|
|
|
6
6
|
//#region src/integrations/next-js.d.ts
|
|
7
7
|
declare function toNextJsHandler(auth: {
|
|
@@ -14,8 +14,8 @@ declare const nextCookies: () => {
|
|
|
14
14
|
id: "next-cookies";
|
|
15
15
|
hooks: {
|
|
16
16
|
after: {
|
|
17
|
-
matcher: (_ctx:
|
|
18
|
-
handler: (_authOptions:
|
|
17
|
+
matcher: (_ctx: hono0.Context<ContextVars<any>, any, {}>) => true;
|
|
18
|
+
handler: (_authOptions: _faire_auth_core_types0.FaireAuthOptions<any>) => (ctx: hono0.Context<ContextVars<object>, string, {}>) => Promise<void>;
|
|
19
19
|
}[];
|
|
20
20
|
};
|
|
21
21
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "../index-
|
|
1
|
+
import "../index-CsWF3f7U.cjs";
|
|
2
2
|
import { t as ContextVars } from "../hono-DOM31WQz.cjs";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as _faire_auth_core_types29 from "@faire-auth/core/types";
|
|
4
|
+
import * as hono29 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: hono29.Context<ContextVars<any>, any, {}>) => true;
|
|
12
|
+
handler: (_authOptions: _faire_auth_core_types29.FaireAuthOptions<any>) => (ctx: hono29.Context<ContextVars<object>, string, {}>) => Promise<void>;
|
|
13
13
|
}[];
|
|
14
14
|
};
|
|
15
15
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "../index-
|
|
1
|
+
import "../index-rFv8Hxld.mjs";
|
|
2
2
|
import { t as ContextVars } from "../hono-D0VqxVy1.mjs";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as hono19 from "hono";
|
|
4
|
+
import * as _faire_auth_core_types10 from "@faire-auth/core/types";
|
|
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: hono19.Context<ContextVars<any>, any, {}>) => true;
|
|
12
|
+
handler: (_authOptions: _faire_auth_core_types10.FaireAuthOptions<any>) => (ctx: hono19.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-CsWF3f7U.cjs";
|
|
2
2
|
import { t as ContextVars } from "../hono-DOM31WQz.cjs";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as _faire_auth_core_types42 from "@faire-auth/core/types";
|
|
4
|
+
import * as hono64 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: hono64.Context<ContextVars<any>, any, {}>) => true;
|
|
37
|
+
handler: (_authOptions: _faire_auth_core_types42.FaireAuthOptions<any>) => (ctx: hono64.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-rFv8Hxld.mjs";
|
|
2
2
|
import { t as ContextVars } from "../hono-D0VqxVy1.mjs";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as hono17 from "hono";
|
|
4
|
+
import * as _faire_auth_core_types9 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: hono17.Context<ContextVars<any>, any, {}>) => true;
|
|
37
|
+
handler: (_authOptions: _faire_auth_core_types9.FaireAuthOptions<any>) => (ctx: hono17.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-CsWF3f7U.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-rFv8Hxld.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";
|
package/dist/plugins/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Ct as InferPluginRateLimit, St as InferPluginMiddleware, _t as FaireAuthPlugin, an as AuthContext$1, bt as InferPluginErrorCodes, gt as AuthPluginSchema, in as createEndpoint, tn as AuthEndpoint, vt as InferOptionSchema, xt as InferPluginHooks, yt as InferPluginDTO } from "../index-
|
|
1
|
+
import { Ct as InferPluginRateLimit, St as InferPluginMiddleware, _t as FaireAuthPlugin, an as AuthContext$1, bt as InferPluginErrorCodes, gt as AuthPluginSchema, in as createEndpoint, tn as AuthEndpoint, vt as InferOptionSchema, xt as InferPluginHooks, yt as InferPluginDTO } from "../index-CsWF3f7U.cjs";
|
|
2
2
|
import { t as ContextVars } from "../hono-DOM31WQz.cjs";
|
|
3
3
|
import { a as Role, c as Subset, i as AccessControl, n as createAccessControl, o as Statements, r as role, s as SubArray, t as AuthorizeResponse } from "../index-CdLyn7qP.cjs";
|
|
4
|
-
import { t as bearer } from "../index-
|
|
5
|
-
import { n as PasskeyOptions, r as passkey, t as Passkey } from "../index-
|
|
6
|
-
import * as
|
|
4
|
+
import { t as bearer } from "../index-DvW-GCcI.cjs";
|
|
5
|
+
import { n as PasskeyOptions, r as passkey, t as Passkey } from "../index-By364WbF.cjs";
|
|
6
|
+
import * as _faire_auth_core_types78 from "@faire-auth/core/types";
|
|
7
7
|
import { FieldAttribute, HookHandler, InferAdditionalFieldsFromPluginOptions, LiteralString, LiteralStringUnion, Prettify } from "@faire-auth/core/types";
|
|
8
8
|
import * as hono117 from "hono";
|
|
9
9
|
import { Context, HonoRequest } from "hono";
|
|
@@ -278,7 +278,7 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions) => {
|
|
|
278
278
|
hooks: {
|
|
279
279
|
after: {
|
|
280
280
|
matcher: (ctx: Context<ContextVars<any>, any, {}>) => any;
|
|
281
|
-
handler: (_opts:
|
|
281
|
+
handler: (_opts: _faire_auth_core_types78.FaireAuthOptions<any>) => (ctx: Context<ContextVars<object>, string, {}>) => Promise<void>;
|
|
282
282
|
}[];
|
|
283
283
|
};
|
|
284
284
|
};
|
|
@@ -8865,7 +8865,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8865
8865
|
hooks: {
|
|
8866
8866
|
after: {
|
|
8867
8867
|
matcher: (ctx: hono117.Context<ContextVars<any>, any, {}>) => boolean;
|
|
8868
|
-
handler: (_opts:
|
|
8868
|
+
handler: (_opts: _faire_auth_core_types78.FaireAuthOptions<any>) => (ctx: hono117.Context<ContextVars<object>, string, {}>) => Promise<_faire_auth_core_types78.JSONRespondReturn<{
|
|
8869
8869
|
twoFactorRedirect: true;
|
|
8870
8870
|
}, 200> | undefined>;
|
|
8871
8871
|
}[];
|
|
@@ -9025,7 +9025,7 @@ interface UsernameOptions {
|
|
|
9025
9025
|
}
|
|
9026
9026
|
declare const username: (options?: UsernameOptions) => {
|
|
9027
9027
|
id: "username";
|
|
9028
|
-
init: (_ctx:
|
|
9028
|
+
init: (_ctx: _faire_auth_core_types78.AuthContext<ContextVars<any>, _faire_auth_core_types78.FaireAuthOptions<ContextVars<any>>>) => {
|
|
9029
9029
|
options: {
|
|
9030
9030
|
databaseHooks: {
|
|
9031
9031
|
user: {
|