Похожие чаты

Hi , i am using axios interceptor for refreshing tokens,

but the page which loads(homepage) needs to contact the server which needs authorization, so the page throws error (i am doing token refresh in the error block in response interceptor). Is there any way to resend the previous request again immediately, so that wont be noticable to user?

5 ответов

21 просмотр

const current_path = window.location.pathname window.location.replace(current_path)

Recursion const doStuff = () => { try { ... } catch (err) { authenticate(); doStuff(); } }

I freaking HATE this refresh token + access token setup, it's just retarded

Похожие вопросы

Обсуждают сегодня

Hey everyone! I won’t focus too much on what this person said (it’s clear they don’t understand the scope of what TF and TELOSX are achieving), but I’ll put it simply for thos...
Ana Ojeda
3
Hi did any of you experience a file error when download hex file for Windows?
Valya
17
как правильно удалить сддм? прописал в etc/portage.use/plasma-meta -sddm , но при обновлении юзов мне предлагает поставить lightdm (ещё лучше 😡), добавил туда - display-manage...
REDis
25
Коллеги, я тут для личных нужд пошел ставить MQTT сервер, пощупал mosquitto, но ужаснулся отсутствию такой банальности, как HTTP API для посмотреть список топиков. А тут что,...
Maksim Lapshin
13
How will they work it out?
Max
14
Could the new Norse labs apps have just been called "VPN" instead of DVPN?
HDGVII
14
Всем привет! Имеется функция: function IsValidChar(ch: UTF8Char): Boolean; var i: Integer; ValidChars: AnsiString; begin ValidChars := 'abcdefghijklmnopqrstuvwxyzABCDE...
Евгений
44
Hello team, I have a question regarding next text from an article and if Energyweb is still working on EW-DOS or what the plans are for the future regarding EW-DOS? Can an...
MichelLWD
4
Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
#include <stdio.h> #include <stdlib.h> #include <time.h> void mass_first_generate(int mass[5][7]) {     for (int N = 0; N < 5; N++) {         for (int A = 0; A < 7; A++) {   ...
Чувак
6
Карта сайта