Skip to content

Commit

Permalink
nova rota frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
yaskisoba committed Dec 13, 2023
1 parent 2a92074 commit 1f3f114
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/controllers/middlewares/Auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { sign, verify } = require('jsonwebtoken');

const createToken = (user) => {
const accessToken = sign({username: user.email},
process.env.SECRET
"qualquer coisa"
);
return accessToken;
};
Expand All @@ -15,7 +15,7 @@ const validateToken = (req, res, next) => {
}

try {
const validToken = verify(accessToken, process.env.SECRET);
const validToken = verify(accessToken, "qualquer coisa");
if (validToken) {
req.authenticated = true;
return next();
Expand Down

1 comment on commit 1f3f114

@vercel
Copy link

@vercel vercel bot commented on 1f3f114 Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

matriculai – ./frontend

matriculai-git-main-matriculai.vercel.app
matriculai-matriculai.vercel.app
matriculai.vercel.app

Please sign in to comment.