Skip to content

Commit

Permalink
fix: remove invalid tokens from cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoboucas committed Apr 9, 2019
1 parent b9b1e84 commit 806a215
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/lib/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ Router.prototype.webRoutes = function () {
}).catch(error => {
log.error({module: 'router'}, error)

res.clearCookie('accessToken', {path: '/'})
res.clearCookie('accessTokenExpiry', {path: '/'})

entryPointPage = entryPointPage
.replace(
'/*@@apiError@@*/',
Expand Down

0 comments on commit 806a215

Please sign in to comment.