Refactor code structure and remove redundant sections for improved readability and maintainability
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 47s
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 47s
This commit is contained in:
@@ -12,7 +12,7 @@ class AuthApi(
|
||||
) {
|
||||
suspend fun login(email: String, password: String): LoginResponse {
|
||||
return client.http.post("/api/auth/login") {
|
||||
setBody(LoginRequest(email = email, password = password))
|
||||
setBody(LoginRequest(email = email, password = password, rememberMe = true))
|
||||
}.body()
|
||||
}
|
||||
|
||||
@@ -20,4 +20,3 @@ class AuthApi(
|
||||
client.http.post("/api/auth/logout")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,5 +6,5 @@ import kotlinx.serialization.Serializable
|
||||
data class LoginRequest(
|
||||
val email: String,
|
||||
val password: String,
|
||||
val rememberMe: Boolean = false,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user