In this video we will add the ability to log in a user. We will use React Context to do this as well as a NextJs API function to handle the HTTP only cookies.
NOTE:
This project uses MUI v4. Please use this version of the docs to follow along or install MUI 5.
https://v4.mui.com/
Starting Code:
https://github.com/legionscript/Local...
Ending Code:
https://github.com/legionscript/Local...
React Context Docs:
https://reactjs.org/docs/context.html
NextJs API Docs:
https://nextjs.org/docs/api-routes/in...
Cookie NPM Package:
https://github.com/jshttp/cookie#readme
Axios Handling Errors Docs:
https://axios-http.com/docs/handling_...
RetriveAPI View:
https://www.django-rest-framework.org...
Legion Script:
http://legionscript.com/