feat: add a warning banner on the login page for misconfigured cookies

This commit is contained in:
Aarnav Tale
2025-11-02 13:54:45 -05:00
parent 7d7e08ee54
commit ce4be73faf
9 changed files with 131 additions and 76 deletions
+6
View File
@@ -40,6 +40,12 @@ const agents = await createHeadplaneAgent(
// These are usually per-request things that we need access to, like the
// helper that can issue and revoke cookies.
export type LoadContext = typeof appLoadContext;
import 'react-router';
declare module 'react-router' {
interface AppLoadContext extends LoadContext {}
}
const appLoadContext = {
config,
hs: await loadHeadscaleConfig(