A
A
AspMaster2019-07-03 21:52:33
ASP.NET
AspMaster, 2019-07-03 21:52:33

How to recognize refresh token in asp.net core?

For authorization I use a pair of access token and refresh. There is such a situation that instead of access, the user can send a refresh token in normal calls to the API, which is dangerous, since the life of the refresh token is much longer. How not to skip the refresh token in regular methods? There was an idea to push into the payload whether it is a refresh or not, but there must be a better way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Zolotov, 2019-07-03
@SZolotov

Well, as if the access token is invalid, it should return 401 status and not let it go further

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question