def has_credentials(self):
if not self.credentials:<EOL><INDENT>return False<EOL><DEDENT>elif (self.credentials.access_token_expired and<EOL>not self.credentials.refresh_token):<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return True<EOL><DEDENT>
Returns True if there are valid credentials for the current user.