akveo / akveo/nebular

JWT mutli refresh-token issue

オープン
#2,167 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
8.1k
フォーク
1.5k
PR マージ指標
30日以内にマージされた PR はありません

説明

Hello
I am facing an issue with refresh-token support mechanism.
As far as I understand, Nebular handle refresh token by invoke of **isAuthenticatedOrRefresh** method.
While sending a bulk of http requests to the server, Nebular handler recognizes that a refresh-token is needed and sends a lot of requests(1 per each request) for refresh-token instead of waiting for one refresh-token to return.
In that situation, the first refresh-token request returns ok and the corresponding http request gets the required data with no problem, BUT, the other requests, fail.
Attached you can find the result as we get them on Network capture.
Please advise how should we handle refresh-token while working with Nebular.
Is it a bug or wrong way of implementation?
Thanks in advance,
![image](https://user-images.githubusercontent.com/29532821/72220479-9d8f5800-3559-11ea-8850-50f79f720916.png)

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。