Skip to content
Snippets Groups Projects
Commit b42fe74c authored by Gabriel Zachmann's avatar Gabriel Zachmann
Browse files

client: fix info base64 decoding

parent 745db9da
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ func (ic *infoCommand) Execute(args []string) error {
return fmt.Errorf("The token is not a JWT.")
}
payload := strings.Split(superToken, ".")[1]
decodedPayload, err := base64.StdEncoding.DecodeString(payload)
decodedPayload, err := base64.URLEncoding.WithPadding(base64.NoPadding).DecodeString(payload)
if err != nil {
return err
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment