nextTotp

public final CurrentTotp nextTotp(String userId)

Returns the current 6 digit used in the TOTP offline authentication, for the provided user id. This is a protected operation, so the SDK must be unlocked before calling this method.

Return

the current 6 digit TOTP for the provided user id.

Parameters

userId

the Futurae account's user id.

See also

.nextTotpWithBiometrics

Throws

if the SDK is locked.

if the user-id provided is not an enrolled account


public final CurrentTotp nextTotp(String userId, CharArray sdkPin)

Returns the current 6 digit used in the TOTP offline authentication, for the provided user id. This method is only available when the SDK LockConfigurationType is SDK_PIN_WITH_BIOMETRICS_OPTIONAL.

Return

the current 6 digit TOTP for the provided user id.

Parameters

userId

the Futurae account's user id.

sdkPin

the Custom App PIN provided by the user.

See also

.nextTotpWithBiometrics

Throws

if the SDK is configured with a LockConfigurationType other than SDK_PIN_WITH_BIOMETRICS_OPTIONAL.

if the provided user id account is not enrolled in the device.