Answer the question
In order to leave comments, you need to log in
React.js + WebApi.NET Can you tell me how to make an authorization?
I started learning React.js, so far there are no problems. And I think soon I will get to authorization, how can I do it all and link it with WebApi .NET?
Answer the question
In order to leave comments, you need to log in
What does WebApi .NET do? How will it authorize?
In general terms:
If by token, then there are no problems. You make a form, send data - you get a token in the response. Store the token somehow, for example, in localStorage. On logout, clear the token. On "expired" - either just ask to log in again, or use refresh tokens (I didn't bother with the refresh myself).
If not by token, then why and why?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question