Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Jan 17, 2024
1 parent 437715b commit 836127c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/middlewares/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const authenticateMiddleware = async (req, res, next) => {
}

export const authCheckMiddleware = (req, res, next) => {
if(!req.session || !req.session.did.authenticated){
if(!req.session || req.session.isExpired || !req.session.did.authenticated){
return res.status(401).send({
error: "Authorization error"
});
Expand Down

0 comments on commit 836127c

Please sign in to comment.