(token string)
| 330 | } |
| 331 | |
| 332 | func maskToken(token string) string { |
| 333 | if idx := strings.LastIndexByte(token, '_'); idx > -1 { |
| 334 | prefix := token[0 : idx+1] |
| 335 | return prefix + strings.Repeat("*", len(token)-len(prefix)) |
| 336 | } |
| 337 | return strings.Repeat("*", len(token)) |
| 338 | } |
| 339 | |
| 340 | func displayScopes(scopes string) string { |
| 341 | if scopes == "" { |