LoginUseCaseImpl

internal class LoginUseCaseImpl(loginRepository: LoginRepository, validateEmailUseCase: ValidateEmailUseCase, validateUserHandleUseCase: ValidateUserHandleUseCase, serverConfig: ServerConfig, proxyCredentials: ProxyCredentials?, secondFactorVerificationRepository: SecondFactorVerificationRepository) : LoginUseCase

Constructors

Link copied to clipboard
internal constructor(loginRepository: LoginRepository, validateEmailUseCase: ValidateEmailUseCase, validateUserHandleUseCase: ValidateUserHandleUseCase, serverConfig: ServerConfig, proxyCredentials: ProxyCredentials?, secondFactorVerificationRepository: SecondFactorVerificationRepository)

Functions

Link copied to clipboard
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.