---
title: "completeChangePasswordRequest(updatedCredential:userInfo:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/asaccountauthenticationmodificationextensioncontext/completechangepasswordrequest(updatedcredential:userinfo:)"
---

# completeChangePasswordRequest(updatedCredential:userInfo:)

Completes a request to update an account’s authentication credentials from using a weak password to using a strong password.

## Declaration

```swift
func completeChangePasswordRequest(updatedCredential: ASPasswordCredential, userInfo: [AnyHashable : Any]? = nil)
```

## Parameters

- `updatedCredential`: The new credentials to store in the user’s keychain.
- `userInfo`: A dictionary that contains details to pass to the extension’s containing app if the app initiated the account modification request.

## Mentioned in

Upgrading Account Security With an Account Authentication Modification Extension

## Discussion

Discussion To receive the userInfo dictionary in your app, set a delegate on the ASAccountAuthenticationModificationController when initiating the request. The delegate receives the userInfo dictionary as a parameter to accountAuthenticationModificationController(_:didSuccessfullyComplete:userInfo:).

## See Also

### Handling Requests

- [completeUpgradeToSignInWithApple(userInfo:)](authenticationservices/asaccountauthenticationmodificationextensioncontext/completeupgradetosigninwithapple(userinfo:).md)
- [getSignInWithAppleUpgradeAuthorization(state:nonce:completionHandler:)](authenticationservices/asaccountauthenticationmodificationextensioncontext/getsigninwithappleupgradeauthorization(state:nonce:completionhandler:).md)
- [cancelRequest(withError:)](authenticationservices/asaccountauthenticationmodificationextensioncontext/cancelrequest(witherror:).md)
- [ASExtensionLocalizedFailureReasonErrorKey](authenticationservices/asextensionlocalizedfailurereasonerrorkey.md)
