code: def _hasCredentials(self):
          
          cred = self.options.get('credentials')
          return (
              cred and
              'clientId' in cred and
              'accessToken' in cred and
              cred['clientId'] and
              cred['accessToken']
          )
docs: Return True, if credentials is given