Please tell me that, how to validate the access token
e.g
if i generate a token , in a specific function i want to validate that token that is it valid or not then how i can do that?
if token is valid then i will use that token otherwise i will generate new token
please give me the a