mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
moved auth ctx to request context, cleaned up system controller
This commit is contained in:
@@ -18,13 +18,14 @@ import { isEqual } from "lodash-es";
|
||||
|
||||
export type ServerEnv = {
|
||||
Variables: {
|
||||
app?: App;
|
||||
app: App;
|
||||
// to prevent resolving auth multiple times
|
||||
auth_resolved?: boolean;
|
||||
// to only register once
|
||||
auth_registered?: boolean;
|
||||
// whether or not to bypass auth
|
||||
auth_skip?: boolean;
|
||||
auth?: {
|
||||
resolved: boolean;
|
||||
registered: boolean;
|
||||
skip: boolean;
|
||||
user?: { id: any; role?: string; [key: string]: any };
|
||||
};
|
||||
html?: string;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user