(origin: string)
| 2403 | ); |
| 2404 | |
| 2405 | const loginHostLabel = (origin: string): string => { |
| 2406 | try { |
| 2407 | const host = new URL(origin).hostname; |
| 2408 | const first = host.split(".")[0]; |
| 2409 | return first && first.length > 0 ? first : host; |
| 2410 | } catch { |
| 2411 | return "server"; |
| 2412 | } |
| 2413 | }; |
| 2414 | |
| 2415 | const sanitizeProfileName = (raw: string): string => { |
| 2416 | const cleaned = raw |
no outgoing calls
no test coverage detected