This commit is contained in:
2021-06-25 12:02:37 -04:00
parent 7d562ba010
commit 1f96cbb23e
17 changed files with 620 additions and 145 deletions

View File

@ -5,7 +5,6 @@ const {Auth} = require('../models/auth');
async function auth(req, res, next){
try{
let user = await Auth.checkToken({token: req.header('auth-token')});
if(user.uid){
req.user = user;
return next();