J
J
Jedi2019-02-16 17:31:27
React
Jedi, 2019-02-16 17:31:27

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 question

Ask a Question

731 491 924 answers to any question