Skip to content

Commit

Permalink
Merge pull request #2 from SuddenGunter/bugs/fix-encoding
Browse files Browse the repository at this point in the history
fix base64 encoding
  • Loading branch information
SuddenGunter authored Apr 3, 2020
2 parents 003bce2 + 6dca191 commit 0f410ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func main() {
flag.Parse()
jwtToken := flag.Args()[0]
payload := strings.Split(jwtToken, ".")[1]
json, err := base64.StdEncoding.DecodeString(payload)
json, err := base64.RawStdEncoding.DecodeString(payload)
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 0f410ef

Please sign in to comment.