akveo / akveo/ngx-admin

Logout not remove local storage token

Đang mở
#1,438 6 bình luận 4 reaction 0 người được giao Xem trên GitHub
needs investigation
Ngôn ngữ chính
TypeScript
Star
25.7k
Fork
7.9k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Cause in my backend api there is no logout endpoint. My config for logout is
```
logout: {
redirect: {
success: '/',
failure: '/',
},
```
The redirect happens but not remove the token authentication from local storage. I was forced to add manually `localStorage.removeItem('auth_app_token');` in @nebular/auth/components/logout/logout.component.js

Is there a config for logout without calling backend api?
Is it causing the failure for not removing local token?

Thanks

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.