Skip to content
Snippets Groups Projects
Commit 909606bb authored by Yoan VALLET's avatar Yoan VALLET
Browse files

fix payload char issue

parent 5ccc6bab
No related branches found
No related tags found
No related merge requests found
Pipeline #7961 passed
......@@ -500,8 +500,7 @@ func main() {
s := strings.Split(data.AccessToken, ".")
if len(s[1]) > 0 {
log.Debug("Split Access Token : ", s[1])
sDec, _ := base64.StdEncoding.DecodeString(s[1])
payload := append(sDec, []byte{125}...)
payload, _ := base64.StdEncoding.DecodeString(s[1])
log.Debug(string(payload))
// Decode the payload from the token
var token GrdfConsentementToken
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment