Skip to content

Commit

Permalink
fix(auth): make sure that whydUid is cleared after logout from Auth0
Browse files Browse the repository at this point in the history
contributes to #756.
  • Loading branch information
adrienjoly committed Dec 29, 2023
1 parent 79523d9 commit 9ab6305
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/models/logging.js
Expand Up @@ -137,10 +137,8 @@ const { useAuth0AsIdentityProvider } = process.appParams;
http.IncomingMessage.prototype.getUid = useAuth0AsIdentityProvider
? function () {
const userId = auth0.getAuthenticatedUserId(this);
if (userId) {
this.session = this.session || {};
this.session.whydUid = userId; // TODO: is this session variable still necessary?
}
this.session = this.session || {};
this.session.whydUid = userId;
return userId;
}
: function () {
Expand Down

0 comments on commit 9ab6305

Please sign in to comment.