fix(backend): use config.JWT_SECRET instead of direct process.env read

This commit is contained in:
saravanakumardb1 2026-03-01 21:21:12 -08:00
parent f10b83c122
commit 8cd0ea7fa7

View File

@ -18,7 +18,7 @@ import { config } from './lib/config.js';
import { jwtVerify } from 'jose';
import type { JwtPayload } from './lib/request-context.js';
const jwtSecret = new TextEncoder().encode(process.env.JWT_SECRET || '');
const jwtSecret = new TextEncoder().encode(config.JWT_SECRET);
await initCosmosIfNeeded();