✨Works out of the box guarantee. If you face any issue at all, hit us up on Telegram and we will write the integration for you.
logoReclaim Protocol Docs
iOS SDK

Usage

Integrate Reclaim Protocol in Swift

Quickstart

Import module into your Swift file.

import ReclaimInAppSdk

Create a request object

let request = ReclaimVerification.Request.params(
    try .init(
        appId: "APP_ID",
        secret: "APP_SECRET",
        providerId: providerId
    )
)

Start the verification flow

let result = try await ReclaimVerification.startVerification(request)

Verify Proofs

The returned result is a ReclaimVerification.Response object. This object contains a response that has proofs, exception, and the sessionId if the verification is successful.

If successful

let proof = result.response.proofs
let sessionId = result.response.sessionId

If failure

let exception = result.response.exception

The exception can be one of the following:

  • ReclaimVerificationError.cancelled: The verification was cancelled by the user.
  • ReclaimVerificationError.dismissed: The verification was dismissed by the sdk.
  • ReclaimVerificationError.failed(let error): The verification failed due to an error.
  • ReclaimVerificationError.sessionExpired: The verification session expired.

Examples

On this page