RequestSecondFactorVerificationCodeUseCase

Sends a verification code to an email.

This code might be required when performing actions, such as:

  • Logging in or registering a new client;

  • Creating a SCIM token;

  • Deleting a team. See VerifiableAction for more.

This is unrelated to RequestActivationCodeUseCase, which is used when registering a new account.

The user must open their email inbox and check the verification code. When invoking UseCases related to the actions mentioned above, the code must be provided in order to get a successful response.

Important!

In order to do not leak valid emails, the backend will return a successful response even if the email is not registered.

See also

Constructors

constructor(secondFactorVerificationRepository: SecondFactorVerificationRepository)

Types

Link copied to clipboard
interface Result

Functions

Link copied to clipboard
suspend operator fun invoke(email: String, verifiableAction: VerifiableAction): RequestSecondFactorVerificationCodeUseCase.Result