A
A
AlexCraft2020-03-18 09:54:00
User identification
AlexCraft, 2020-03-18 09:54:00

How to make authorization on cookies using React hooks?

Are there already some best practices for authorization with hooks? I don’t need to chew, maybe someone just has useful links?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2020-03-18
@Robur

just like without hooks.
authorization is separate, UI rendering is separate, and with hooks you render it or not, these are particulars.
for react components, the authorization state, the current user, and what else you have is just another data, work with the rest of the application state and work with authorization.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question