(origin: string)
| 2393 | ); |
| 2394 | |
| 2395 | const loginHostLabel = (origin: string): string => { |
| 2396 | try { |
| 2397 | const host = new URL(origin).hostname; |
| 2398 | const first = host.split(".")[0]; |
| 2399 | return first && first.length > 0 ? first : host; |
| 2400 | } catch { |
| 2401 | return "server"; |
| 2402 | } |
| 2403 | }; |
| 2404 | |
| 2405 | const sanitizeProfileName = (raw: string): string => { |
| 2406 | const cleaned = raw |
no outgoing calls
no test coverage detected