From: TheSaminator Date: Tue, 8 Feb 2022 22:18:13 +0000 (-0500) Subject: Remove old code X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=426c008eb38c66886247f79d6ba1da46af640d35;p=starship-fights Remove old code --- diff --git a/src/jvmMain/kotlin/starshipfights/auth/providers.kt b/src/jvmMain/kotlin/starshipfights/auth/providers.kt index 23c2c9a..a37944f 100644 --- a/src/jvmMain/kotlin/starshipfights/auth/providers.kt +++ b/src/jvmMain/kotlin/starshipfights/auth/providers.kt @@ -377,7 +377,6 @@ class ProductionAuthProvider(val discordLogin: DiscordLogin) : AuthProvider { get("/login/discord/callback") { val userAgent = call.request.userAgent() ?: throw ForbiddenException() val principal: OAuthAccessTokenResponse.OAuth2 = call.principal() ?: redirect("/login") - //call.sessions.set(UserSession(principal?.accessToken.toString())) val userInfoJson = httpClient.get("https://discord.com/api/users/@me") { headers { append(HttpHeaders.Authorization, "Bearer ${principal.accessToken}")