Answer the question
In order to leave comments, you need to log in
How to make Middleware?
Good evening.
I have implemented authorization in my React application and now I want to correctly implement middleware. For example, to check if the client or the admin has authorized this authorized user...
How is it done?
DRY - I write localStorage.getItem('jwtToken') in each component, this is not possible).
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question