@sasjs/adapter 3.10.3 → 3.10.4

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.
package/package.json CHANGED
@@ -87,5 +87,5 @@
87
87
  "https": "1.0.0",
88
88
  "tough-cookie": "4.0.0"
89
89
  },
90
- "version": "3.10.3"
90
+ "version": "3.10.4"
91
91
  }
@@ -23,7 +23,7 @@ export class AuthManager {
23
23
  ? '/SASLogon/logout?'
24
24
  : this.serverType === ServerType.SasViya
25
25
  ? '/SASLogon/logout.do?'
26
- : '/SASjsApi/auth/logout'
26
+ : '/SASLogon/logout'
27
27
  }
28
28
 
29
29
  /**
@@ -334,19 +334,9 @@ export class AuthManager {
334
334
 
335
335
  /**
336
336
  * Logs out of the configured SAS server.
337
- * @param accessToken - an optional access token is required for SASjs server type.
337
+ *
338
338
  */
339
339
  public async logOut() {
340
- if (this.serverType === ServerType.Sasjs) {
341
- return this.requestClient
342
- .delete(this.logoutUrl)
343
- .catch(() => true)
344
- .finally(() => {
345
- this.requestClient.clearLocalStorageTokens()
346
- return true
347
- })
348
- }
349
-
350
340
  this.requestClient.clearCsrfTokens()
351
341
 
352
342
  return this.requestClient.get(this.logoutUrl, undefined).then(() => true)