fix(backend): use config.JWT_SECRET instead of direct process.env read
This commit is contained in:
parent
f10b83c122
commit
8cd0ea7fa7
@ -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();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user