Integrating Verisoul in iOS Apps
.xcworkspace
file in Xcode and start using the SDK.File > Add Packages
.App Attest
capability to your project. This capability allows the SDK to perform necessary checks and validations to ensure the integrity and security of your application.
Update your app’s entitlements file:
configure(env:projectId:)
Configure the SDK by passing it the environment, project ID, and bundle identifier. This function initializes the networking, device check, and device attestation components.
Parameters:
env (VerisoulEnvironment)
: The environment to configure the SDK with (e.g., dev, staging, prod).projectId (String)
: Your project’s unique identifier.configure(env:projectId:)
method should be called once, typically during the app’s initialization process (e.g., in the AppDelegate
or SceneDelegate
).
session() async throws -> String
Once the minimum amount of data is gathered the session ID becomes available. The session ID is needed in order to request a risk assessment from Verisoul’s API. Note that session IDs are short lived and will expire after 24 hours. The application can obtain session ID by providing the callback as shown below: