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 var 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.
-
Undocumented
Declaration
Swift
public func registerLogin(identifier: String, onSuccess: @escaping () -> Void, onError: @escaping (String) -> Void)
-
Manual registration of an issued login name for the current credential.
Declaration
Swift
public func registerLogin(identifier: String, claim: String, onSuccess: @escaping () -> Void, onError: @escaping (String) -> Void)
Parameters
identifier
A unique login identifier for this user (for example, phone number.)
claim
A claim issued to the user credential, proving ownership of the identifier.
onSuccess
Success callback, invoked on the main thread.
onError
Failure callback , invoked on the main thread with a String error message.