Converted the account system to an auth system

This commit is contained in:
2021-03-07 00:41:19 +11:00
parent 725842f672
commit 2e024f71c3
27 changed files with 4495 additions and 7 deletions
+9
View File
@@ -0,0 +1,9 @@
const { tokens } = require('../database/models');
module.exports = (token) => {
tokens.destroy({
where: {
token
}
});
}