mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
debug discord login (16x)
- remove unless println - DONE
This commit is contained in:
parent
27ee9b811c
commit
355b56a6cf
@ -105,7 +105,6 @@ val server = embeddedServer(Netty, port = 8080, ) {
|
||||
|
||||
}
|
||||
get("/callback/discord") {
|
||||
println("CALLBACK")
|
||||
try {
|
||||
val principal = call.principal<OAuthAccessTokenResponse.OAuth2>()
|
||||
val session = call.sessions.get<UserSession>()
|
||||
@ -117,9 +116,6 @@ val server = embeddedServer(Netty, port = 8080, ) {
|
||||
val userInfo = getDiscordUser(accessToken)
|
||||
val guilds = getUserGuilds(accessToken)
|
||||
|
||||
println(userInfo)
|
||||
println(guilds)
|
||||
|
||||
userInfo?.user?.id?.toLong()?.let { id -> UserService.updateUser(user, id) }
|
||||
|
||||
call.sessions.set(UserSession(
|
||||
|
Loading…
x
Reference in New Issue
Block a user