December 2019
Intermediate to advanced
474 pages
10h 3m
English
When the users have added products to the cart, you want them to be able to checkout, but before that, the users should be authenticated as you want to know who's buying the product. Handling authentication in React will also require an interaction with the backend, since you need to store the user's information somewhere or check whether the user exists.
For authentication in frontend applications, most of the time, JSON Web Tokens (JWTs) are used, which are encrypted tokens that can easily be used to share user information with a backend. The JWT will be returned by the backend when the user is successfully authenticated and often, this token will have an expiration date. With every request that ...
Read now
Unlock full access