Skip to content

Commit 6cd84d7

Browse files
committed
1 parent eb97a61 commit 6cd84d7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

angular/src/shared/auth/app-auth.service.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@ export class AppAuthService {
2828

2929
logout(reload?: boolean): void {
3030
abp.auth.clearToken();
31-
abp.utils.setCookieValue(
32-
AppConsts.authorization.encryptedAuthTokenName,
33-
undefined,
34-
undefined,
35-
abp.appPath
36-
);
31+
abp.utils.deleteCookie(AppConsts.authorization.encryptedAuthTokenName);
32+
3733
if (reload !== false) {
3834
location.href = AppConsts.appBaseUrl;
3935
}

0 commit comments

Comments
 (0)