create Account
suspend fun createAccount(request: AccountRequests.CreateAccountRequest): Pair<AccountObjects.Account?, NetworkingError?>
Creates a new account and emits a Sift login event on success.
Return
A pair of the created AccountObjects.Account and any NetworkingError.
Parameters
request
The account creation payload.
fun createAccount(request: AccountRequests.CreateAccountRequest, completionHandler: (AccountObjects.Account?, NetworkingError?) -> Unit)
Creates a new account and emits a Sift login event on success.
Parameters
request
The account creation payload.
completion Handler
Called with the created AccountObjects.Account or a NetworkingError.