kitcn 0.12.25 → 0.12.26
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t as GetAuth } from "../../types-BiJE7qxR.js";
|
|
2
2
|
import { HttpRouter } from "convex/server";
|
|
3
3
|
import { MiddlewareHandler } from "hono";
|
|
4
|
+
import { BaseURLConfig, BetterAuthOptions } from "better-auth";
|
|
4
5
|
|
|
5
6
|
//#region src/auth/middleware.d.ts
|
|
6
7
|
interface AuthMiddlewareOptions {
|
|
@@ -31,7 +32,7 @@ declare function authMiddleware<Ctx = unknown>(getAuth: GetAuth<Ctx, {
|
|
|
31
32
|
}>, opts?: AuthMiddlewareOptions): MiddlewareHandler;
|
|
32
33
|
//#endregion
|
|
33
34
|
//#region src/auth/registerRoutes.d.ts
|
|
34
|
-
type TrustedOriginsOption =
|
|
35
|
+
type TrustedOriginsOption = BetterAuthOptions['trustedOrigins'];
|
|
35
36
|
type AuthRouteContract = {
|
|
36
37
|
$context: Promise<{
|
|
37
38
|
options: {
|
|
@@ -41,7 +42,7 @@ type AuthRouteContract = {
|
|
|
41
42
|
handler: (request: Request) => Promise<Response>;
|
|
42
43
|
options: {
|
|
43
44
|
basePath?: string;
|
|
44
|
-
baseURL?:
|
|
45
|
+
baseURL?: BaseURLConfig;
|
|
45
46
|
trustedOrigins?: TrustedOriginsOption;
|
|
46
47
|
};
|
|
47
48
|
};
|
package/dist/auth/http/index.js
CHANGED
|
@@ -318,7 +318,6 @@ const handleCors = ({ originalHandler, allowedMethods = ["OPTIONS"], allowedOrig
|
|
|
318
318
|
|
|
319
319
|
//#endregion
|
|
320
320
|
//#region src/auth/registerRoutes.ts
|
|
321
|
-
/** biome-ignore-all lint/suspicious/noConsole: lib */
|
|
322
321
|
const LOCAL_AUTH_HOSTS = new Set([
|
|
323
322
|
"127.0.0.1",
|
|
324
323
|
"::1",
|