enroll

abstract suspend fun <Config, Response> enroll(factorType: FactorType<Config, Response>, friendlyName: String? = null, config: Config.() -> Unit = {}): MfaFactor<Response>(source)

Return

MfaEnrollResponse containing the id of the MFA factor, the type of MFA factor and the data of the MFA factor (like QR-Code for TOTP)

Parameters

factorType

The type of MFA factor to enroll. Currently only supports TOTP.

friendlyName

Human-readable name assigned to a device

See also