akveo / akveo/nebular

Allow NbPasswordAuthStrategy.logout() without HTTP request

Đang mở
#1,207 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
module:auth needs docs
Ngôn ngữ chính
TypeScript
Star
8.1k
Fork
1.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Issue type

**I'm submitting a ...** (check one with "x")

* [ ] bug report
* [x] feature request

### Issue description

**Current behavior:**
Using `NbPasswordAuthStrategy.logout()` there's always an HTTP request for the `logout` endpoint. But when using stateless JWT, the backend API will not have a `logout` endpoint.

**Expected behavior:**
Allow the configuration of `logout` (and other functions) without making an HTTP request. Some functions could require HTTP request (e.g. `login`), but others don't.

**Steps to reproduce:**
We need a backend API that doesn't have a `logout` endpoint, but has a `login` endpoint that provides a stateless JWT.

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.