BinCode/config/jwt.js

8 lines
218 B
JavaScript
Raw Permalink Normal View History

2025-01-17 20:05:21 +00:00
if (!process.env.JWT_SECRET) {
throw new Error('JWT_SECRET environment variable is required');
}
module.exports = {
secret: process.env.JWT_SECRET,
expiresIn: process.env.JWT_EXPIRES_IN || '24h'
};