Check for token or if the token expires and refresh