This commit is contained in:
MICHAEL JACKSON
2017-11-25 13:25:01 -08:00
parent f3974b5e2d
commit 3a309241da
64 changed files with 635 additions and 801 deletions

View File

@ -1,4 +1,4 @@
const AuthAPI = require('../AuthAPI')
const AuthAPI = require("../AuthAPI")
const ReadMethods = { GET: true, HEAD: true }
@ -23,7 +23,7 @@ function userToken(req, res, next) {
next()
},
error => {
if (error.name === 'JsonWebTokenError') {
if (error.name === "JsonWebTokenError") {
res.status(403).send({
error: `Bad auth token: ${error.message}`
})
@ -31,7 +31,7 @@ function userToken(req, res, next) {
console.error(error)
res.status(500).send({
error: 'Unable to verify auth'
error: "Unable to verify auth"
})
}
}