(origin: string)
| 2269 | ); |
| 2270 | |
| 2271 | const loginHostLabel = (origin: string): string => { |
| 2272 | try { |
| 2273 | const host = new URL(origin).hostname; |
| 2274 | const first = host.split(".")[0]; |
| 2275 | return first && first.length > 0 ? first : host; |
| 2276 | } catch { |
| 2277 | return "server"; |
| 2278 | } |
| 2279 | }; |
| 2280 | |
| 2281 | const sanitizeProfileName = (raw: string): string => { |
| 2282 | const cleaned = raw |
no outgoing calls
no test coverage detected