1
0
mirror of https://github.com/sasjs/server.git synced 2026-06-10 02:20:22 +00:00

chore: added preProgramVariables

This commit is contained in:
Saad Jutt
2021-11-10 08:04:45 +05:00
parent f07f269839
commit d9057bc33b
6 changed files with 40 additions and 6 deletions
+1
View File
@@ -46,6 +46,7 @@ const authenticateToken = (
if (user) {
if (user.isActive) {
req.user = user
if (tokenType === 'accessToken') req.accessToken = token
return next()
} else return res.sendStatus(401)
}