Skip to content

Commit

Permalink
fix: 修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nullaqua committed Sep 11, 2024
1 parent e4c7df7 commit ed34b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/subit/utils/SSO.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ object SSO: KoinComponent
val response =
runCatching { connection.inputStream.bufferedReader().readText() }.getOrNull() ?: return@withContext null
connection.disconnect()
return@withContext json.decodeFromString(SsoUserFull.serializer(), response)
return@withContext decodeSsoUser(response) as? SsoUserFull
}

suspend fun getUserFull(token: String): UserFull?
Expand Down

0 comments on commit ed34b0b

Please sign in to comment.