mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
Refactor asset handling and authentication logic (for node)
Updated asset path configuration and server-side logic to standardize asset serving. Introduced `shouldSkipAuth` to bypass authentication for asset requests. Added test coverage for the new asset path handling logic.
This commit is contained in:
@@ -10,7 +10,9 @@ import type { Hono } from "hono";
|
||||
export type ServerEnv = {
|
||||
Variables: {
|
||||
app: App;
|
||||
// to prevent resolving auth multiple times
|
||||
auth_resolved: boolean;
|
||||
// to only register once
|
||||
auth_registered: boolean;
|
||||
html?: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user