Skip to content

Commit b48e6f9

Browse files
committed
hotfix because this should be 401 not 400
1 parent c6e977e commit b48e6f9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rest.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ const messenger = function (err, req, res, next) {
142142
}
143143
let token = req.header("Authorization")
144144
if(token && !token.startsWith("Bearer ")){
145-
error.message +=`
146-
Your token is not in the correct format. It should be a Bearer token formatted like: "Bearer <token>"`
145+
error.message +=`Your token is not in the correct format. It should be a Bearer token formatted like: "Bearer <token>"`
147146
error.status = 401
148147
}
149148
switch (error.status) {

0 commit comments

Comments
 (0)