From 6dca19160642a52769bde007eccc8c2213bd6dd5 Mon Sep 17 00:00:00 2001 From: Artem Date: Sat, 4 Apr 2020 00:43:59 +0300 Subject: [PATCH] fix base64 encoding --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index f4541d5..ea52249 100644 --- a/main.go +++ b/main.go @@ -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) }