From f2dce550633daa575b29e24bca9cb66025dd55c7 Mon Sep 17 00:00:00 2001 From: Giorgio Delgado Date: Thu, 26 Sep 2024 16:30:10 -0400 Subject: [PATCH 1/2] Use Authenticator to retrieve auth instance --- lib/connection/connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); From aa6a3f96630b3e56c4cb73dd3e675272cc851f14 Mon Sep 17 00:00:00 2001 From: Giorgio Delgado Date: Thu, 26 Sep 2024 16:31:23 -0400 Subject: [PATCH 2/2] Update connectionOptions Adds missing `clientStoreTemporaryCredential` field --- index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) 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.