diff --git a/oauthenticator/google.py b/oauthenticator/google.py index b0548d5b..dcd9bcc5 100644 --- a/oauthenticator/google.py +++ b/oauthenticator/google.py @@ -344,14 +344,7 @@ def _is_token_valid(self, user_email_domain): """ Checks if the stored token is valid. """ - if not self._service_credentials[user_email_domain]: - return False - if not self._service_credentials[user_email_domain].token: - return False - if self._service_credentials[user_email_domain].expired: - return False - - return True + return self._service_credentials[user_email_domain].valid def _service_client_credentials(self, scopes, user_email_domain): """