Skip to content

Commit

Permalink
Merge pull request #32 from morinoparty/develop
Browse files Browse the repository at this point in the history
Add logger
  • Loading branch information
Nlkomaru authored Apr 28, 2024
2 parents 3fa9bcf + dc9a5b7 commit 9e5ff2c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ object TokenRouter: KoinComponent {
val redirectUri = call.parameters["redirect_uri"]
val clientId = call.parameters["client_id"]
val codeVerifier = call.parameters["code_verifier"]
plugin.logger.info("Received token request with grant_type: $grantType, code: $code, redirect_uri: $redirectUri, client_id: $clientId, code_verifier: $codeVerifier")
val data = authorizedData[code] ?: run {
authorizedData.remove(code)
call.respond(HttpStatusCode.BadRequest, "Invalid code")
Expand Down

0 comments on commit 9e5ff2c

Please sign in to comment.