

def credentials_are_valid(self, user_settings):
    if user_settings:
        for account in user_settings.external_accounts:
            if utils.can_list(account.oauth_key, account.oauth_secret):
                return True
    return False

dataset/ETHPy150Open CenterForOpenScience/osf.io/website/addons/s3/serializer.py S3Serializer.credentials_are_valid/original