claimFields returns the sorted list of fields in the claims map.
(claims map[string]interface{})
| 1629 | |
| 1630 | // claimFields returns the sorted list of fields in the claims map. |
| 1631 | func claimFields(claims map[string]interface{}) []string { |
| 1632 | fields := []string{} |
| 1633 | for field := range claims { |
| 1634 | fields = append(fields, field) |
| 1635 | } |
| 1636 | slices.Sort(fields) |
| 1637 | return fields |
| 1638 | } |
| 1639 | |
| 1640 | // blankFields returns the list of fields in the claims map that are |
| 1641 | // an empty string. |
no outgoing calls
no test coverage detected