Refactor jwt
This commit is contained in:
@@ -16,7 +16,7 @@ import javax.inject.Singleton
|
||||
internal class LoginUseCaseImpl(
|
||||
private val userRepository: UserRepository,
|
||||
private val passwordHash: PasswordHash,
|
||||
private val jwt: SimpleJwt
|
||||
private val jwt: SimpleJwt<LoggedInUser>
|
||||
) : LoginUseCase {
|
||||
override fun login(form: LoginForm) = either.eager<LoginError, Token> {
|
||||
val user = !UserValidations.validateLogin(form)
|
||||
|
||||
Reference in New Issue
Block a user