mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-09-30 04:57:50 +02:00
log when access token is received
This commit is contained in:
parent
986fbb5a28
commit
47ed9ac071
@ -15,7 +15,6 @@ import io.ktor.server.websocket.*
|
|||||||
import kotlinx.coroutines.future.await
|
import kotlinx.coroutines.future.await
|
||||||
import java.net.URLEncoder
|
import java.net.URLEncoder
|
||||||
import java.time.Duration
|
import java.time.Duration
|
||||||
import java.time.Instant
|
|
||||||
import java.util.*
|
import java.util.*
|
||||||
import kotlin.math.absoluteValue
|
import kotlin.math.absoluteValue
|
||||||
|
|
||||||
@ -170,5 +169,6 @@ class WebLogin : WebState {
|
|||||||
}.body<JsonObject>()
|
}.body<JsonObject>()
|
||||||
val uuid = parseUndashedId(profile["id"].asString)
|
val uuid = parseUndashedId(profile["id"].asString)
|
||||||
webClient.server.minecraftAccessTokens.put(uuid, accessToken)
|
webClient.server.minecraftAccessTokens.put(uuid, accessToken)
|
||||||
|
webLogger.info("Received token: {} {}", webClient.id, uuid)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user