Imagine the following scenarion.
User is authenticated and get an authentication cookie. Which means one shouldn't enter username and password once again. I store only username in authentication cookie.
A hacker steals user's authentication cookie somehow. Admin decides to change a password for a user but a hacker is still authenticated and can access the system!
As far as I can understand authentication cookie can't be decrypted anywhere but serverside, isn't it?
Is it safe to store a password or a password hash as a custom claim in authentication cookie so I can compare it later and remove authentication from discriminated users? What's a best practice for it? Or am I doing or asking something completely wrong?