I will be going in detail on this in the next article. It will be out next week.
Meanwhile, you can use cookies to make the Auth token available in all of your pages. Then use token to make the API call
We also have the concept of protected routes in React where only authenticated users can access such routes.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I will be going in detail on this in the next article. It will be out next week.
Meanwhile, you can use cookies to make the Auth token available in all of your pages. Then use token to make the API call
We also have the concept of protected routes in React where only authenticated users can access such routes.