TrustedKeyWalletService

public class TrustedKeyWalletService : WalletService

The API calls for Trusted Key specific wallet API endpoints.

  • Static reference to the Trusted Key Wallet API

    Declaration

    Swift

    public static let shared = TrustedKeyWalletService(backendUrl: "https://wallet.trustedkey.com/")
  • Undocumented

    Declaration

    Swift

    public static let errLoginExist = "The login already exists"
  • Manual verification of the email address.

    Declaration

    Swift

    public func verifyEmailClaim(requestID: String, authcode: String, emailAddress: String, onSuccess: @escaping () -> Void, onError: @escaping (String) -> Void)

    Parameters

    requestID

    A unique ID for this request (for example, an UUID) for retries and notifications.

    authcode

    The authorization code from the confirmation email

    emailAddress

    The email address of the user

    onSuccess

    Success callback, invoked on the main thread.

    onError

    Failure callback , invoked on the main thread with a String error message.

  • Manual registration of a login name for the current credential.

    Declaration

    Swift

    public func registerLogin(login: String, onSuccess: @escaping () -> Void, onError: @escaping (String) -> Void)

    Parameters

    login

    A unique login identifier for this user (for example, phone number.)

    onSuccess

    Success callback, invoked on the main thread.

    onError

    Failure callback , invoked on the main thread with a String error message.