(msg string)
| 1727 | var scopesRE = regexp.MustCompile(`one of the following scopes: \[(.+?)]`) |
| 1728 | |
| 1729 | func requiredScopesFromServerMessage(msg string) []string { |
| 1730 | m := scopesRE.FindStringSubmatch(msg) |
| 1731 | if m == nil { |
| 1732 | return nil |
| 1733 | } |
| 1734 | var scopes []string |
| 1735 | for mm := range strings.SplitSeq(m[1], ",") { |
| 1736 | scopes = append(scopes, strings.Trim(mm, "' ")) |
| 1737 | } |
| 1738 | return scopes |
| 1739 | } |
| 1740 | |
| 1741 | func projectFieldValueData(v FieldValueNodes) any { |
| 1742 | switch v.Type { |
no outgoing calls