---
title: "convertAccountToSignInWithAppleWithoutUserInteraction(for:existingCredential:userInfo:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/asaccountauthenticationmodificationviewcontroller/convertaccounttosigninwithapplewithoutuserinteraction(for:existingcredential:userinfo:)"
---

# convertAccountToSignInWithAppleWithoutUserInteraction(for:existingCredential:userInfo:)

Converts an account’s authentication mechanism from using passwords to using Sign in with Apple.

## Declaration

```swift
func convertAccountToSignInWithAppleWithoutUserInteraction(for serviceIdentifier: ASCredentialServiceIdentifier, existingCredential: ASPasswordCredential, userInfo: [AnyHashable : Any]? = nil)
```

## Parameters

- `serviceIdentifier`: An identifier that represents a particular service that the user needs a credential for, like a web site.
- `existingCredential`: The current password credential for the service.
- `userInfo`: A dictionary that contains app-specific values when the request to upgrade to Sign in with Apple initiates from the parent app. If the request to upgrade to Sign in with Apple doesn’t initiate from the app, this parameter is nil.

## Mentioned in

Upgrading Account Security With an Account Authentication Modification Extension

## See Also

### Upgrading to Sign in with Apple

- [prepareInterfaceToConvertAccountToSignInWithApple(for:existingCredential:userInfo:)](authenticationservices/asaccountauthenticationmodificationviewcontroller/prepareinterfacetoconvertaccounttosigninwithapple(for:existingcredential:userinfo:).md)
- [ASAccountAuthenticationModificationSupportsUpgradeToSignInWithApple](bundleresources/information-property-list/nsextension/asaccountauthenticationmodificationsupportsupgradetosigninwithapple.md)
