fix: prevent cookie manager from racing env init
this fixes a bug where using LOAD_ENV_FILE did not work with COOKIE_SECRET
This commit is contained in:
parent
a4bb3cce5f
commit
7217659720
15 changed files with 97 additions and 46 deletions
|
|
@ -9,7 +9,7 @@ import Link from '~/components/Link';
|
|||
import { cn } from '~/utils/cn';
|
||||
import { loadContext } from '~/utils/config/headplane';
|
||||
import { HeadscaleError, pull } from '~/utils/headscale';
|
||||
import { destroySession, getSession } from '~/utils/sessions';
|
||||
import { destroySession, getSession } from '~/utils/sessions.server';
|
||||
|
||||
export async function loader({ request }: LoaderFunctionArgs) {
|
||||
const session = await getSession(request.headers.get('Cookie'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue