Advertisement

← vibesdk

worker/types/appenv.ts

438 bytes Download file
import { GlobalConfigurableSettings } from "../config";
import { AuthLevelOptions, AuthRequirement } from "../middleware/auth/routeAuth";
import { AuthUser } from "./auth-types";


export type AppEnv = {
    Bindings: Env;
    Variables: {
        user: AuthUser | null;
        sessionId: string | null;
        config: GlobalConfigurableSettings;
        authLevel: AuthRequirement;
        authLevelOptions?: AuthLevelOptions;
    }
}