Frontend part of implementation of JWT Authentication and Authorization.
This project is designed to use with @tirtharajsinha/django-auth.
It can be also used with other authservers with same api end points as @tirtharajsinha/django-auth.
npm install
-
Start the backend authentication app (@tirtharajsinha/django-auth).
-
Get the base url path of the backend app. (i.e http://127.0.0.1:8000)
-
update the url in
NEXT_PUBLIC_AUTH_SERVER_URL
of.env
file of this project. -
now start this application with
npm run dev
npm run build
it will create build in /out
directory.
to test build open the /out/index.html
on liveserver.