diff --git a/index.d.ts b/index.d.ts index deacf23c4..c4c453b3f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -478,6 +478,11 @@ declare module 'snowflake-sdk' { */ validateDefaultParameters?: boolean; + /** + * The option to enable connection caching. Should be used along with `credentialCacheDir` + */ + clientStoreTemporaryCredential?: boolean; + /** * The option to set the location where the token will be saved for the token authentication (MFA and SSO). * The path must include the folder path only. diff --git a/lib/connection/connection.js b/lib/connection/connection.js index 55a30ca43..eee8128be 100644 --- a/lib/connection/connection.js +++ b/lib/connection/connection.js @@ -305,7 +305,7 @@ function Connection(context) { } // Get authenticator to use - const auth = services.sf.getAuthenticator(); + const auth = Authenticator.getAuthenticator(connectionConfig, context.getHttpClient()); try { await initEasyLogging(connectionConfig.clientConfigFile);