Skip to content

Commit

Permalink
fix base64 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
SuddenGunter committed Apr 3, 2020
1 parent 003bce2 commit 6dca191
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 6dca191

Please sign in to comment.