create

abstract suspend fun create(parameters: TOTP.CreateParameters): TOTPCreateResponse

Call this method to create a new TOTP instance for a user. The user can use the authenticator application of their choice to scan the QR code or enter the secret.

Return

TOTPCreateResponse

Parameters

parameters

the parameters required to create a TOTP


abstract fun create(parameters: TOTP.CreateParameters, callback: (TOTPCreateResponse) -> Unit)

Call this method to create a new TOTP instance for a user. The user can use the authenticator application of their choice to scan the QR code or enter the secret.

Parameters

parameters

the parameters required to create a TOTP

callback

a callback that receives a TOTPCreateResponse