func RemoveJWSHeader(removed []string) JWSHeaderOpt {
	substitutes := map[string]string{
		"iat": "http://openbanking.org.uk/iat",
		"iss": "http://openbanking.org.uk/iss",
		"tan": "http://openbanking.org.uk/tan",
	}

	return func(current map[string]interface{}) map[string]interface{} {
		result := map[string]interface{}{}
		for key, value := range current {
			result[key] = value
		}

		for _, key := range removed {
			substitute, ok := substitutes[key]
			if ok {
				key = substitute
			}

			delete(result, key)
		}
		return result
	}
}
// RemoveJWSHeader provides an option which modifies an existing JWT by
// deleting specified keys from its header.
RemoveJWSHeader provides an option which modifies an existing JWT by
deleting specified keys from its header.
// RemoveJWSHeader provides an option which modifies an existing JWT by // deleting specified keys from its header .
func RemoveJWSHeader(removed []string) JWSHeaderOpt {
	substitutes := map[string]string{
		"iat": "http://openbanking.org.uk/iat",
		"iss": "http://openbanking.org.uk/iss",
		"tan": "http://openbanking.org.uk/tan",
	}
	return func(current map[string]interface{}) map[string]interface{} {
		result := map[string]interface{}{}
		for key, value := range current {
			result[key] = value
		}
		for _, key := range removed {
			substitute, ok := substitutes[key]
			if ok {
				key = substitute
			}
			delete(result, key)
		}
		return result
	}
}
func RemoveJWSHeader ( removed [ ] string ) JWSHeaderOpt { substitutes := map [ string ] string { " " : " " , " " : " " , " " : " " , } return func ( current map [ string ] interface { } ) map [ string ] interface { } { result := map [ string ] interface { } { } for key , value := range current { result [ key ] = value } for _ , key := range removed { substitute , ok := substitutes [ key ] if ok { key = substitute } delete ( result , key ) } return result } }
RemoveJWSHeader provides an option which modifies an existing JWT by
deleting specified keys from its header.
RemoveJWSHeader provides an option which modifies an existing JWT by deleting specified keys from its header .