wordpress-indieauth
wordpress-indieauth copied to clipboard
Invalidate Tokens on User Change
trafficstars
If user's password or email changes, consider invalidating their tokens.
Specifically, use the after_password_reset hook to invalidate tokens associated with that account, on the theory a password reset means a possible account compromise. This is different than a password change.
The same could be required if the account changed the email address on file.
Also, on the set_user_role hook, consider revoking tokens.