add built state and skip auth cookie if not signed in for local calls

This commit is contained in:
dswbx
2025-01-25 19:30:03 +01:00
parent 2d6d83ccb2
commit 39c419c320
3 changed files with 11 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
import type { CreateUserPayload } from "auth/AppAuth";
import { Event } from "core/events";
import { Connection, type LibSqlCredentials, LibsqlConnection } from "data";
import type { Hono } from "hono";
import {
type InitialModuleConfigs,
ModuleManager,
@@ -132,7 +133,7 @@ export class App {
return this.modules.ctx().em;
}
get fetch(): any {
get fetch(): Hono["fetch"] {
return this.server.fetch;
}
@@ -155,6 +156,10 @@ export class App {
return this.modules.version();
}
isBuilt(): boolean {
return this.modules.isBuilt();
}
registerAdminController(config?: AdminControllerOptions) {
// register admin
this.adminController = new AdminController(this, config);