Skip to content

Commit

Permalink
fix(classes): save new encrypted token after revoke
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao authored Jul 24, 2023
1 parent 0ce413d commit dad1423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ User.prototype.revokeToken = async function () {
await db.collection('users').doc(this.id).update(data);

this.mfaEnabled = false;
this.secret = encryptData;
this.secret = encryptedData;
this.sessions = [];
};

Expand Down

0 comments on commit dad1423

Please sign in to comment.