Похожие чаты

A newbie question, When using JWT for auth. Does the backend

have to explicitly send the token with every response? or is it just onetime? Is it sent through header or through response jason?

6 ответов

10 просмотров

You return the auth token the first time with expiry date. The app that require auth check for expiry and the token is correct. If that token expired, return http redirect to the auth page

akza07- Автор вопроса
Sharuzzaman Ahmat Raslan
You return the auth token the first time with expi...

Yes. Then let's say we got authorized. Do we have to send they token again with other responses? Or do we store the token in the front-end?

akza07- Автор вопроса
Sharuzzaman Ahmat Raslan
Yes. Client need to send the token each time

so server needs to check the token at each end point too?

akza07
so server needs to check the token at each end poi...

Should be, if you require each endpoint to have authentication before consuming

akza07- Автор вопроса

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

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

а зачем этот вопрос для удаления из чата?
Mёdkinson Medvezhkin
63
Добрый день. Хочу сделать отрисовку по команде на панели. Почему-то рисуется только при втором вызове. С чем может быть связано, не подскажете? procedure TForm1.FormDblClick(...
Kirill Filippenok
20
Есть рассчет для Таллинна? https://x.com/dr_enderlin/status/1784581592003850496
Vladimir Ivanov
23
Any dog on Fantom ?
Bitcoin Magic
19
Интересно, а в чём прикол мак оси?
Лисицка
16
Всем доброго дня! Подскажите может кто использовал связку Pagebuilder + Clientsetting. Сами параметры с типом pagebuilder в модуле Clientsetting работают нормально, можно такж...
Александр Добриков
12
using next image component with s3 image: "url" parameter is valid but upstream response is invalid code: <Image fill src={s...
Fasil
3
Добрый день Как поставить vscode из флэтпака как дефолтный редактор в filezilla?
Daniel
18
Tax his land, Tax his bed, Tax the table At which he's fed. Tax his work, Tax his pay, He works for peanuts Anyway! Tax his cow, Tax his goat, Tax his pants, Tax his coat....
Forge
5
А почему в си некоторые вещи работают с двойными кавычками некоторые с одинарными? Нельзя было все сделать с одними или чтоб работало с разными? например чтоб выводить строки ...
.
15
Карта сайта