admin login issue

This commit is contained in:
2026-09-21 16:38:15 +05:30
parent 8456c5e852
commit b60b8baef6
40 changed files with 2254 additions and 260 deletions

View File

@@ -107,15 +107,16 @@ export default async function RootLayout({
>
<body>
{/*
FIRST child of <body>, and that position is the whole point: it runs
before the markup below it is parsed, so a tab that inherited the
cookies without owning the session never paints the workspace. An
FIRST child of <body>, and that position is the whole point: it gives
this tab its id and points the cookie at it before the markup below is
parsed, so the very first navigation is rendered as the right user. An
effect inside Providers would run after the first paint instead.
See services/tabSession.ts for what it does and why it fails open.
It no longer takes the session: it does not decide anything about
being signed in, and nothing in it signs anybody out. See
services/tabSession.ts for what it replaced and why.
*/}
<script
dangerouslySetInnerHTML={{__html: tabSessionScript(session !== null)}}
/>
<script dangerouslySetInnerHTML={{__html: tabSessionScript()}} />
<Providers initialSession={session} initialThemeMode={themeMode}>
{children}
</Providers>