logout

public final Unit logout(String userId, FuturaeCallback callback)

Logout the user and remove the account. This is a protected operation, so the SDK must be unlocked before calling this method.

Parameters

userId

Futurae account's user id that will be logged out.

callback

Callback to get notified about success or failure of this operation.

See also

.deleteAccount

Throws

if the SDK is locked.

if a new enrollment is taking place.

if the provided account user id is not enrolled.