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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as ContextVars } from "./hono-
|
|
2
|
-
import * as _faire_auth_core_types35 from "@faire-auth/core/types";
|
|
1
|
+
import { t as ContextVars } from "./hono-D0VqxVy1.mjs";
|
|
3
2
|
import * as hono41 from "hono";
|
|
3
|
+
import * as _faire_auth_core_types35 from "@faire-auth/core/types";
|
|
4
4
|
|
|
5
5
|
//#region src/plugins/bearer/index.d.ts
|
|
6
6
|
interface BearerOptions {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { tn as AuthEndpoint, vt as InferOptionSchema } from "./index-
|
|
1
|
+
import { tn as AuthEndpoint, vt as InferOptionSchema } from "./index-Boa0SV4h.cjs";
|
|
2
2
|
import { t as ContextVars } from "./hono-DOM31WQz.cjs";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
3
|
+
import * as _faire_auth_core_types43 from "@faire-auth/core/types";
|
|
4
|
+
import * as hono55 from "hono";
|
|
5
|
+
import * as _faire_auth_core_db7 from "@faire-auth/core/db";
|
|
6
6
|
import * as z$1 from "zod";
|
|
7
7
|
import { AuthenticationResponseJSON, CredentialDeviceType } from "@simplewebauthn/server";
|
|
8
8
|
|
|
@@ -185,16 +185,16 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
185
185
|
path: "/passkey/generate-register-options";
|
|
186
186
|
method: "get";
|
|
187
187
|
client: false;
|
|
188
|
-
middleware: [(ctx:
|
|
188
|
+
middleware: [(ctx: hono55.Context<ContextVars<{
|
|
189
189
|
session: {
|
|
190
|
-
session:
|
|
191
|
-
user:
|
|
190
|
+
session: _faire_auth_core_db7.Session;
|
|
191
|
+
user: _faire_auth_core_db7.User;
|
|
192
192
|
};
|
|
193
|
-
}>, string, {}>, next:
|
|
193
|
+
}>, string, {}>, next: hono55.Next) => Promise<void | (Response & hono55.TypedResponse<{
|
|
194
194
|
success: false;
|
|
195
195
|
code?: string | undefined;
|
|
196
196
|
message?: string | undefined;
|
|
197
|
-
}, 401>) |
|
|
197
|
+
}, 401>) | _faire_auth_core_types43.JSONRespondReturn<{
|
|
198
198
|
success: false;
|
|
199
199
|
code?: string | undefined;
|
|
200
200
|
message?: string | undefined;
|
|
@@ -382,16 +382,16 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
382
382
|
operationId: "verifyPasskeyRegistration";
|
|
383
383
|
path: "/passkey/verify-registration";
|
|
384
384
|
method: "post";
|
|
385
|
-
middleware: [(ctx:
|
|
385
|
+
middleware: [(ctx: hono55.Context<ContextVars<{
|
|
386
386
|
session: {
|
|
387
|
-
session:
|
|
388
|
-
user:
|
|
387
|
+
session: _faire_auth_core_db7.Session;
|
|
388
|
+
user: _faire_auth_core_db7.User;
|
|
389
389
|
};
|
|
390
|
-
}>, string, {}>, next:
|
|
390
|
+
}>, string, {}>, next: hono55.Next) => Promise<void | (Response & hono55.TypedResponse<{
|
|
391
391
|
success: false;
|
|
392
392
|
code?: string | undefined;
|
|
393
393
|
message?: string | undefined;
|
|
394
|
-
}, 401>) |
|
|
394
|
+
}, 401>) | _faire_auth_core_types43.JSONRespondReturn<{
|
|
395
395
|
success: false;
|
|
396
396
|
code?: string | undefined;
|
|
397
397
|
message?: string | undefined;
|
|
@@ -602,7 +602,7 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
602
602
|
operationId: "listPasskeys";
|
|
603
603
|
path: "/passkey/list-user-passkeys";
|
|
604
604
|
method: "get";
|
|
605
|
-
middleware: [(ctx:
|
|
605
|
+
middleware: [(ctx: hono55.Context<ContextVars<object & {
|
|
606
606
|
session: {
|
|
607
607
|
session: {
|
|
608
608
|
[x: string]: unknown;
|
|
@@ -626,7 +626,7 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
626
626
|
image?: string | null;
|
|
627
627
|
};
|
|
628
628
|
};
|
|
629
|
-
}>, string, {}>, next:
|
|
629
|
+
}>, string, {}>, next: hono55.Next) => Promise<void | (Response & hono55.TypedResponse<{
|
|
630
630
|
success: false;
|
|
631
631
|
code?: string | undefined;
|
|
632
632
|
message?: string | undefined;
|
|
@@ -678,7 +678,7 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
678
678
|
operationId: "deletePasskey";
|
|
679
679
|
path: "/passkey/delete-passkey";
|
|
680
680
|
method: "post";
|
|
681
|
-
middleware: [(ctx:
|
|
681
|
+
middleware: [(ctx: hono55.Context<ContextVars<object & {
|
|
682
682
|
session: {
|
|
683
683
|
session: {
|
|
684
684
|
[x: string]: unknown;
|
|
@@ -702,7 +702,7 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
702
702
|
image?: string | null;
|
|
703
703
|
};
|
|
704
704
|
};
|
|
705
|
-
}>, string, {}>, next:
|
|
705
|
+
}>, string, {}>, next: hono55.Next) => Promise<void | (Response & hono55.TypedResponse<{
|
|
706
706
|
success: false;
|
|
707
707
|
code?: string | undefined;
|
|
708
708
|
message?: string | undefined;
|
|
@@ -832,7 +832,7 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
832
832
|
operationId: "updatePasskey";
|
|
833
833
|
path: "/passkey/update-passkey";
|
|
834
834
|
method: "post";
|
|
835
|
-
middleware: [(ctx:
|
|
835
|
+
middleware: [(ctx: hono55.Context<ContextVars<object & {
|
|
836
836
|
session: {
|
|
837
837
|
session: {
|
|
838
838
|
[x: string]: unknown;
|
|
@@ -856,7 +856,7 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
856
856
|
image?: string | null;
|
|
857
857
|
};
|
|
858
858
|
};
|
|
859
|
-
}>, string, {}>, next:
|
|
859
|
+
}>, string, {}>, next: hono55.Next) => Promise<void | (Response & hono55.TypedResponse<{
|
|
860
860
|
success: false;
|
|
861
861
|
code?: string | undefined;
|
|
862
862
|
message?: string | undefined;
|