New User Registration

To register a new user, BlokSec SDK provides the below method

  /** This method is used to register the User with the specified Registration Request     - Parameters:         - request: request of type BSRegistrationRequest containing relevant information to get registered */     public func registerUser(request: BlokSecFramework.BSRegistrationRequest, withCompletion completion: BlokSecFramework.BlokSecSDKStartCompletion? = nil)

Create BSRegistrationRequest instance and call registerUser method

Sample usage

BlokSec.shared?.registerUser(request: registerNewUserRequest) { userId in guard let userId = userId else { // Failure Handling return } }

Updated 16 Apr 2022
Did this page help you?