Skip to content

Commit

Permalink
Merge pull request #1085 from rdkempt/master
Browse files Browse the repository at this point in the history
update character encoding to improve JWT handling
  • Loading branch information
KelvinTegelaar authored Aug 21, 2024
2 parents c2b836a + 8d3ed0e commit 1d37e17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function Read-JwtAccessDetails {

# Convert base64 to json to object
$tokenByteArray = [System.Convert]::FromBase64String($tokenPayload)
$tokenArray = [System.Text.Encoding]::ASCII.GetString($tokenByteArray)
$tokenArray = [System.Text.Encoding]::UTF8.GetString($tokenByteArray)
$TokenObj = $tokenArray | ConvertFrom-Json

# Convert token details to human readable
Expand Down

0 comments on commit 1d37e17

Please sign in to comment.