@newheap/platform-common 1.3.0 → 1.3.1
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.
|
@@ -2667,11 +2667,12 @@ class BaseNhAuthService {
|
|
|
2667
2667
|
}
|
|
2668
2668
|
async logout() {
|
|
2669
2669
|
const result = new TaskResult();
|
|
2670
|
+
const refreshToken = this.getAuthorization()?.refreshToken ?? null;
|
|
2670
2671
|
let httpParams = new HttpParams();
|
|
2671
2672
|
if (httpParams.get('language') === null) {
|
|
2672
2673
|
httpParams = httpParams.set('language', this.moduleConfig.language);
|
|
2673
2674
|
}
|
|
2674
|
-
const request$ = this.httpClient.post(this.moduleConfig.authApiBaseUrl + this.moduleConfig.authentication.endpoints.logout, {}, {
|
|
2675
|
+
const request$ = this.httpClient.post(this.moduleConfig.authApiBaseUrl + this.moduleConfig.authentication.endpoints.logout, { refreshToken }, {
|
|
2675
2676
|
params: httpParams,
|
|
2676
2677
|
withCredentials: true
|
|
2677
2678
|
});
|