code base

This commit is contained in:
ANUJ7MADKE
2025-07-13 22:49:55 +05:30
parent d4f21c9a99
commit cd43f0e98e
96 changed files with 17779 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import jwt from 'jsonwebtoken';
function generateToken(tokenObject) {
return jwt.sign(
tokenObject,
process.env.JWT_SECRET,
{ expiresIn: '1h' }
);
}
export default generateToken;