๐ฆ Authentication in a React App ๐ฆ
Posted on Jun 1st, 2022
๐๏ธ Todayโs topics
- Using Forms in React
- Revisit โWhat is logged in?โ in code
- Requesting an auth token for login
๐ฏ Project
Work with your team to get the initial components in place for the QuestionBox or Social E-cards project.
By Friday
- be able to make GET requests for questions and answers / cards and friends
- show them on the page
- have a solid start on POST requests
- deploy to Netlify as soon as possible (TIP โญ Your code needs to run locally with no errors before you can deploy it!)
๐ Resources
- Token Authentication Endpoint guide for djoser library -> This is the library being used by the backend
use-local-storage-state
-> You wouldnpm install use-local-storage-state
to use it in your code- Check out this custom hook code example, which shows how you could implement this yourself (you could even borrow this code and use it in your project instead of the above library if you wanted to).
- Using the Web Storage API
- How to Build a Front-End App Before you Have an API
- CORS explained for front-end devs