Skip to content

Commit

Permalink
Merge pull request hiteshchoudhary#152 from KadlagAkash/fix/auth
Browse files Browse the repository at this point in the history
fix(auth): properly clear refreshToken in database upon user logout
  • Loading branch information
wajeshubham authored May 2, 2024
2 parents 5f2dec6 + b9450d6 commit fb947de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/apps/auth/user.controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const logoutUser = asyncHandler(async (req, res) => {
req.user._id,
{
$set: {
refreshToken: undefined,
refreshToken: '',
},
},
{ new: true }
Expand Down

0 comments on commit fb947de

Please sign in to comment.