---
title: "accountManager(_:shouldAuthenticateAccountProviderWithIdentifier:)"
framework: Video Subscriber Account
role: symbol
role_heading: Instance Method
platforms: [iOS 10.0+, iPadOS 10.0+, Mac Catalyst 10.0+, tvOS 10.0+, visionOS 1.0+]
path: "videosubscriberaccount/vsaccountmanagerdelegate/accountmanager(_:shouldauthenticateaccountproviderwithidentifier:)"
---

# accountManager(_:shouldAuthenticateAccountProviderWithIdentifier:)

Asks the delegate whether to authenticate the user with the selected provider.

## Declaration

```swift
optional func accountManager(_ accountManager: VSAccountManager, shouldAuthenticateAccountProviderWithIdentifier accountProviderIdentifier: String) -> Bool
```

## Parameters

- `accountManager`: The account manager instance that requests the authentication view controller.
- `accountProviderIdentifier`: The supported account provider the user has selected.

## Return Value

Return Value Return true to attempt authentication with the selected provider; otherwise, return false to respond with an unsupported provider error.

## Discussion

Discussion The system calls this method when the user chooses a provider from the list of supported providers; it isn’t called if the user selects “Other TV Providers”. Use this method to temporarily refrain from authenticating the user with the supported provider during a brief outage or service degradation. If you don’t implement this method, the user can authenticate with all supported providers.
