An open API service indexing awesome lists of open source software.

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

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