You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parts := strings.Split(jwt, ".")
header := parts[0]
header = padHeader(header)
headerDecoded, err := base64.StdEncoding.DecodeString(header)
if err != nil {
return false, fmt.Errorf("the tokens header does not appear to be a base64 encoded string")
}
The token header is throwing illegal base64 data at input byte 88 but the header decodes fine on jsonwebtoken.io.
This is an example header: eyJraWQiOiJmVzlaZXM2SHp2My05RTg3Wnl5RnFWN0t4amJUdlVRNWZzdWxZWDNpa1hJIiwiYWxnIjoiUlMyNTYifQ
The specific issue seems to be here...
The token header is throwing
illegal base64 data at input byte 88
but the header decodes fine on jsonwebtoken.io.This is an example header:
eyJraWQiOiJmVzlaZXM2SHp2My05RTg3Wnl5RnFWN0t4amJUdlVRNWZzdWxZWDNpa1hJIiwiYWxnIjoiUlMyNTYifQ
Full details on this issue on here.
The text was updated successfully, but these errors were encountered: