jwtsecret issue
Some checks failed
Deploy to Test Environment / deploy-to-test (push) Failing after 24s

This commit is contained in:
2025-12-28 14:50:53 -08:00
parent 2a310648ca
commit 356c1a1894
2 changed files with 9 additions and 2 deletions

View File

@@ -260,6 +260,13 @@ const jwtOptions = {
secretOrKey: JWT_SECRET,
};
// --- DEBUG LOGGING FOR JWT SECRET ---
if (!JWT_SECRET) {
logger.fatal('[Passport] CRITICAL: JWT_SECRET is missing or empty in environment variables! JwtStrategy will fail.');
} else {
logger.info(`[Passport] JWT_SECRET loaded successfully (length: ${JWT_SECRET.length}).`);
}
passport.use(
new JwtStrategy(jwtOptions, async (jwt_payload, done) => {
logger.debug(