Skip to content

Commit

Permalink
revert urlsafe decode
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmelati committed Nov 14, 2024
1 parent c27d618 commit 842dce5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ fun decodeJWTComponents(jwtToken: String): JWT {
throw InvalidJwtException("Invalid JWT format: Expected 3 parts, found ${parts.size}")
}

val headerJson = Base64.UrlSafe.decode(parts[0]).decodeToString()
val payloadJson = Base64.UrlSafe.decode(parts[1]).decodeToString()
val headerJson = Base64.decode(parts[0]).decodeToString()
val payloadJson = Base64.decode(parts[1]).decodeToString()

return try {
JWT(
Expand Down

0 comments on commit 842dce5

Please sign in to comment.