https://github.com/moonlitgrace/nextauth-api
Backend build with Django for NextAuth - a secure and powerful authentication system
https://github.com/moonlitgrace/nextauth-api
Last synced: 3 months ago
JSON representation
Backend build with Django for NextAuth - a secure and powerful authentication system
- Host: GitHub
- URL: https://github.com/moonlitgrace/nextauth-api
- Owner: moonlitgrace
- Created: 2023-02-09T16:13:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-10T12:45:35.000Z (over 2 years ago)
- Last Synced: 2025-02-08T13:42:01.867Z (5 months ago)
- Language: Python
- Homepage:
- Size: 54.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## NextAuth - a secure and powerful authentication system
NextAuth is using httpOnly cookies for authentication, so this is more secure than authentication with localStorage
It has Google and Github social authentication too... And it comes with awesome UI ...### Major packages used
[django](https://www.djangoproject.com/) - for backend
[dj-rest-auth](https://github.com/iMerica/dj-rest-auth) - for Simple JWT authentication with httpOnly cookies
[django-allauth](https://github.com/pennersr/django-allauth) - for social authentication
[djangorestframework](https://github.com/encode/django-rest-framework) - for making Rest Api's
[djangorestframework-simplejwt](https://github.com/jazzband/djangorestframework-simplejwt) - for making JWT token based authentication> Checkout the frontend for this [NextAuth-frontend](https://github.com/suneethsunx/NextAuth-frontend)
## Getting Started
Clone this repo and `cd /`
First, install the required packages( recommended in virtual env ):```bash
pip install -r requirements.txt
```
Then start development server by:
```bash
python manage.py runserver
# or
python3 manage.py runserver
# or
./manage.py runserver
```
Server will be run in `http://localhost:8000`Open [http://localhost:8000](http://localhost:8000) with your browser to see the result.
That's all, you can modify this backend and feel free make a pull request