()
| 65 | } |
| 66 | |
| 67 | function callbackUrl() { |
| 68 | if (!oauthServerPort) throw new Error("Snowflake OAuth callback server is not running") |
| 69 | return `http://${OAUTH_CALLBACK_HOST}:${oauthServerPort}${OAUTH_CALLBACK_PATH}` |
| 70 | } |
| 71 | |
| 72 | export function oauthScope(role: string | undefined) { |
| 73 | if (!role) return "refresh_token" |
no outgoing calls
no test coverage detected