---
title: "changePassword(from:to:)"
framework: passkit
role: symbol
role_heading: Instance Method
path: "passkit/jpkipasscontents/signingidentity-swift.struct/changepassword(from:to:)"
---

# changePassword(from:to:)

A function that allows you to change the password associated with the signing identity.

## Declaration

```swift
func changePassword(from oldValue: String, to newValue: String) async throws
```

## Parameters

- `oldValue`: The user authentication value used to perform the request to change the password.
- `newValue`: The new user authentication value applied to the signing identity.

## See Also

### Signing identity authentication

- [signingIdentity](passkit/jpkipasscontents/signingidentity-swift.property.md)
- [JPKIPassContents.SigningIdentity.AuthenticationType](passkit/jpkipasscontents/signingidentity-swift.struct/authenticationtype.md)
