func payloadSplit(msg string) (head, body, sig string) {
	firstIdx := strings.IndexByte(msg, '.')
	firstPart := msg[:firstIdx]
	idx := strings.LastIndex(msg, ".")
	lastPart := msg[idx+1:]
	middle := msg[firstIdx+1 : idx]
	return firstPart, middle, lastPart
}
// splits out a 3 part JWT into head, body, signature splitting by '.'
// Note the body may contain multiple '.' characters if its not base64 encoded (b64=false)
splits out a 3 part JWT into head, body, signature splitting by '.'
Note the body may contain multiple '.' characters if its not base64 encoded (b64=false)
// splits out a 3 part JWT into head body signature splitting by ' . ' // Note the body may contain multiple ' . ' characters if its not base64 encoded ( b64 = false )
func payloadSplit(msg string) (head, body, sig string) {
	firstIdx := strings.IndexByte(msg, '.')
	firstPart := msg[:firstIdx]
	idx := strings.LastIndex(msg, ".")
	lastPart := msg[idx+1:]
	middle := msg[firstIdx+1 : idx]
	return firstPart, middle, lastPart
}
func payloadSplit ( msg string ) ( head , body , sig string ) { firstIdx := strings . IndexByte ( msg , '.' ) firstPart := msg [ : firstIdx ] idx := strings . LastIndex ( msg , " " ) lastPart := msg [ idx + 1 : ] middle := msg [ firstIdx + 1 : idx ] return firstPart , middle , lastPart }
splits out a 3 part JWT into head, body, signature splitting by '.'
splits out a 3 part JWT into head body signature splitting by ' . '