Prettify
This commit is contained in:
@ -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"
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user