I am new to token based authentication and doing the following:
- Authenticate the user by email and password,
- get a token back from backend,
- store the token in local storage,
- check to see if a token is present. If yes then user is logged in.
What what I want to achieve is that if the user changes his password then the client should prompt for fresh login. How can this be done?