@sasjs/adapter 4.3.0 → 4.3.2

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.
@@ -185,6 +185,7 @@ export declare class SASViyaApiClient {
185
185
  getAccessToken(clientId: string, clientSecret: string, authCode: string): Promise<SasAuthResponse>;
186
186
  /**
187
187
  * Exchanges the refresh token for an access token for the given client.
188
+ * This method can only be used by Node.
188
189
  * @param clientId - the client ID to authenticate with.
189
190
  * @param clientSecret - the client secret to authenticate with.
190
191
  * @param refreshToken - the refresh token received from the server.
@@ -2,6 +2,7 @@ import { AuthConfig, ServerType } from '@sasjs/utils/types';
2
2
  import { RequestClient } from '../request/RequestClient';
3
3
  /**
4
4
  * Returns the auth configuration, refreshing the tokens if necessary.
5
+ * This function can only be used by Node, if a server type is SASVIYA.
5
6
  * @param requestClient - the pre-configured HTTP request client
6
7
  * @param authConfig - an object containing a client ID, secret, access token and refresh token
7
8
  * @param serverType - server type for which refreshing the tokens, defaults to SASVIYA
@@ -2,6 +2,7 @@ import { SasAuthResponse } from '@sasjs/utils/types';
2
2
  import { RequestClient } from '../request/RequestClient';
3
3
  /**
4
4
  * Exchanges the refresh token for an access token for the given client.
5
+ * This function can only be used by Node.
5
6
  * @param requestClient - the pre-configured HTTP request client
6
7
  * @param clientId - the client ID to authenticate with.
7
8
  * @param clientSecret - the client secret to authenticate with.