Wrote a couple simple tests

This commit is contained in:
2022-03-02 15:35:14 +00:00
parent 46152032bb
commit 89ea67456d
9 changed files with 8283 additions and 11 deletions
+1
View File
@@ -12,6 +12,7 @@ module.exports = (index, email, username, type, admin, mod) => {
mod,
};
//these are strings
const accessToken = jwt.sign(content, process.env.SECRET_ACCESS, { expiresIn: '10m', issuer: 'auth' });
const refreshToken = jwt.sign(content, process.env.SECRET_REFRESH, { expiresIn: '30d', issuer: 'auth' });