We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dd7512 commit a5cecdcCopy full SHA for a5cecdc
src/main/kotlin/infrastructure/api/handlers/AuthenticationHandler.kt
@@ -25,8 +25,8 @@ class AuthenticationHandler(
25
) : Handler<RoutingContext> {
26
27
override fun handle(routingContext: RoutingContext) {
28
- routingContext.request().body().onComplete {
29
- val user = Json.decodeFromString<UserDto>(it.result().toString()).toUser()
+ routingContext.request().body().onSuccess {
+ val user = Json.decodeFromString<UserDto>(it.toString()).toUser()
30
AuthenticationUseCase(user, provider.webClient).execute().onComplete { ar ->
31
routingContext
32
.response()
0 commit comments