invoke

open suspend operator override fun invoke(userIdentifier: String, password: String, shouldPersistClient: Boolean, cookieLabel: String?, secondFactorVerificationCode: String?): AuthenticationResult

Login with user credentials and return the session Be noticed that session won't be stored locally, to store it use AddAuthenticatedUserUseCase.

If fails due to missing or invalid 2FA code, use RequestSecondFactorVerificationCodeUseCase to request a new code and then call this method again with the new code.

See also