Skip to content

Commit

Permalink
Update auth.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bzapata95 authored Feb 27, 2020
1 parent 919df60 commit 438b844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/Middleware/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = (req, res, next) => {
// Bearer asdjahd8asd8a7d9a8sd
const parts = authHeader.split(" ");

if (!parts.length === 2)
if (parts.length !== 2)
return res.status(401).send({ error: "Token error" });

const [scheme, token] = parts;
Expand Down

0 comments on commit 438b844

Please sign in to comment.