---
title: "init(_:request:onCompletion:)"
framework: passkit
role: symbol
role_heading: Initializer
path: "passkit/verifyidentitywithwalletbutton/init(_:request:oncompletion:)"
---

# init(_:request:onCompletion:)

Creates a verify identity button that starts the identity authorization flow, with a completion handler.

## Declaration

```swift
nonisolated init(_ label: VerifyIdentityWithWalletButtonLabel = .verifyIdentity, request: PKIdentityRequest, onCompletion: @escaping (Result<PKIdentityDocument, any Error>) -> Void)
```

## Parameters

- `label`: The button’s label.
- `request`: The identity request to make when a person taps the button.
- `onCompletion`: The completion handler the framework calls when finishing the authorization flow.

## See Also

### Creating the button

- [init(_:action:)](passkit/verifyidentitywithwalletbutton/init(_:action:).md)
- [init(_:request:onCompletion:fallback:)](passkit/verifyidentitywithwalletbutton/init(_:request:oncompletion:fallback:).md)
