Skip to content

Commit

Permalink
update character encoding to improve JWT handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rdkempt committed Aug 21, 2024
1 parent 2b7fe4c commit 8d3ed0e
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 8d3ed0e

Please sign in to comment.