(origin: string)
| 2322 | ); |
| 2323 | |
| 2324 | const loginHostLabel = (origin: string): string => { |
| 2325 | try { |
| 2326 | const host = new URL(origin).hostname; |
| 2327 | const first = host.split(".")[0]; |
| 2328 | return first && first.length > 0 ? first : host; |
| 2329 | } catch { |
| 2330 | return "server"; |
| 2331 | } |
| 2332 | }; |
| 2333 | |
| 2334 | const sanitizeProfileName = (raw: string): string => { |
| 2335 | const cleaned = raw |
no outgoing calls
no test coverage detected