Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
fix[oidc-middleware]: Removed next() in ensureAuthenticated
Browse files Browse the repository at this point in the history
This `next()` call was causing the "Cannot set headers after they are sent to the client" error
  • Loading branch information
robertjd authored and robertdamphousse-okta committed Jun 11, 2018
1 parent 8047386 commit 592ec42
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/oidc-middleware/src/oidcUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ oidcUtil.ensureAuthenticated = (context, options) => {
ensureLoggedIn(options)(req, res, next);
} else {
res.sendStatus(401);
next();
}
};
}

0 comments on commit 592ec42

Please sign in to comment.