Check if token valid

How can I check if a token is valid before trying to login? or maybe using the login function if that return a good error idk
Was this page helpful?