v3: search engine, responsive header with compact user menu
This commit is contained in:
@@ -7,14 +7,14 @@ import {
|
||||
isAuthPayload,
|
||||
isInvitePayload,
|
||||
} from "../model/interfaces.ts";
|
||||
import { JWT_SECRET } from "../config.ts";
|
||||
|
||||
const jwtSecret = Deno.env.get("GERBEUR_JWT_SECRET");
|
||||
if (!jwtSecret) {
|
||||
if (!JWT_SECRET) {
|
||||
throw new Error(
|
||||
"GERBEUR_JWT_SECRET environment variable is required. Generate one with: openssl rand -hex 32",
|
||||
);
|
||||
}
|
||||
const JWT_KEY = new TextEncoder().encode(jwtSecret);
|
||||
const JWT_KEY = new TextEncoder().encode(JWT_SECRET);
|
||||
|
||||
// ── Invite tokens ─────────────────────────────────────────────────────────────
|
||||
|
||||
|
||||
Reference in New Issue
Block a user