code: func DecodeSegment(seg string) ([]byte, error) {
  	if l := len(seg) % 4; l > 0 {
  		seg += strings.Repeat("=", 4-l)
  	}
  
  	return base64.URLEncoding.DecodeString(seg)
  }
docs: // Decode JWT specific base64url encoding with padding stripped