Generate access token that is used by two @username and once @username logs out it should deactivate for him but active for other @username?

How can I Generate access token that is used by two @username but once first @username logs out it should be deactivate for that @username but active for other @username?If the first username again tries to login it need to generate access token again.

0 0 91