@versori/run 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -235,7 +235,7 @@ export class VersoriCredentialsFactory {
235
235
  }
236
236
  async getTokenByName(name, forceRefresh = false) {
237
237
  const credId = await this.getCredentialIDFromName(name);
238
- const token = await this.tokenClient.getToken(credId);
238
+ const token = await this.tokenClient.getToken(credId, forceRefresh);
239
239
  if (!token?.token) {
240
240
  throw new Error(`Token not found for connection ${name} with credential ID ${credId}`);
241
241
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versori/run",
3
- "version": "v0.2.2",
3
+ "version": "v0.2.3",
4
4
  "description": "Versori Run",
5
5
  "homepage": "https://github.com/versori/versori-run#readme",
6
6
  "repository": {
@@ -238,7 +238,7 @@ class VersoriCredentialsFactory {
238
238
  }
239
239
  async getTokenByName(name, forceRefresh = false) {
240
240
  const credId = await this.getCredentialIDFromName(name);
241
- const token = await this.tokenClient.getToken(credId);
241
+ const token = await this.tokenClient.getToken(credId, forceRefresh);
242
242
  if (!token?.token) {
243
243
  throw new Error(`Token not found for connection ${name} with credential ID ${credId}`);
244
244
  }