(input: string)
| 36 | let oauthServerPort: number | undefined |
| 37 | |
| 38 | function normalizeAccount(input: string) { |
| 39 | return input |
| 40 | .trim() |
| 41 | .replace(/^https?:\/\//, "") |
| 42 | .replace(/\.snowflakecomputing\.com\/?$/, "") |
| 43 | .replace(/\/+$/, "") |
| 44 | } |
| 45 | |
| 46 | function generateRandomString(length: number) { |
| 47 | const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~" |