BinCode/config/jwt.js
2025-01-17 15:05:21 -05:00

8 lines
218 B
JavaScript

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'
};