Availing Vault Manager is as easy as implementing one line of code. Note that there are more options which you have to set by passing your SDK settings in the configure function. Please refer to the section below for more information.

1
func showVaultManager(clientToken:completion:)
swift
copy

Parameters

clientTokenstringRequired

Client token as returned by the create client session call

completion((Error?) -> Void)?Optional

The completion handler will notify you that the Vault Manager has been presented, or that an error has occured.

Example

Availing Vault Manager is as easy as implementing one line of code:

1234567891011121314151617
// 👇 Add thisimport PrimerSDK class MyViewController: UIViewController {     // ...     @IBAction func openVaultManagerTapped(_ sender: Any) {         // 👇 Add this        Primer.shared.showVaultManager(clientToken: clientToken) { err in            if let err {                // Handle the error            }        }    }}
swift
copy