@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/SASjs.d.ts +1 -4
- package/auth/AuthManager.d.ts +2 -5
- package/index.js +2 -2
- package/node/SASjs.d.ts +1 -4
- package/node/auth/AuthManager.d.ts +2 -5
- package/node/index.js +2 -2
- package/package.json +1 -1
- package/src/auth/AuthManager.ts +2 -12
package/package.json
CHANGED
package/src/auth/AuthManager.ts
CHANGED
|
@@ -23,7 +23,7 @@ export class AuthManager {
|
|
|
23
23
|
? '/SASLogon/logout?'
|
|
24
24
|
: this.serverType === ServerType.SasViya
|
|
25
25
|
? '/SASLogon/logout.do?'
|
|
26
|
-
: '/
|
|
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
|
-
*
|
|
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)
|