# Next-Auth with Django, how can we do it? Email Based, and OAuth Both!

**URL:** <https://forum.djangoproject.com/t/next-auth-with-django-how-can-we-do-it-email-based-and-oauth-both/13385>\
**Category:** Getting Started\
**Created:** [April 27, 2022, 5:11am UTC](https://forum.djangoproject.com/t/next-auth-with-django-how-can-we-do-it-email-based-and-oauth-both/13385 "2022-04-27T05:11:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bishwasbh](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/bishwasbh/32/2294_2.png) [@bishwasbh](https://forum.djangoproject.com/u/bishwasbh)\
**Post date:** [April 27, 2022, 5:11am UTC](https://forum.djangoproject.com/t/next-auth-with-django-how-can-we-do-it-email-based-and-oauth-both/13385/1 "2022-04-27T05:11:59Z")

</div>

I have be struggling a lot with connecting NextAuth Oauth with Django Backend, also I am really confused how we can de Email/Password based authentication with with NextAuth (Next.Js) and Django Rest Framework backed… Has anyone have ever done it?

---

<div class="post-metadata">

**Author:** ![DennisAziaya](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/dennisaziaya/32/10551_2.png) [@DennisAziaya](https://forum.djangoproject.com/u/DennisAziaya)\
**Post date:** [October 25, 2022, 10:48am UTC](https://forum.djangoproject.com/t/next-auth-with-django-how-can-we-do-it-email-based-and-oauth-both/13385/2 "2022-10-25T10:48:14Z")

</div>

You should probably check out an article by Mahieyin Rahmun, I found it helpful, here is the link [(Part 1) How to configure social authentication in a Next.js + Next-Auth + Django Rest Framework application | by Mahieyin Rahmun | Medium](https://mahieyin-rahmun.medium.com/how-to-configure-social-authentication-in-a-next-js-next-auth-django-rest-framework-application-cb4c82be137)

---

<div class="post-metadata">

**Author:** ![artu-hnrq](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/artu-hnrq/32/15451_2.png) [@artu-hnrq](https://forum.djangoproject.com/u/artu-hnrq)\
**Post date:** [August 19, 2023, 5:45am UTC](https://forum.djangoproject.com/t/next-auth-with-django-how-can-we-do-it-email-based-and-oauth-both/13385/3 "2023-08-19T05:45:15Z")

</div>

I’d also recommend this great article:  
[Django REST Framework Authentication with Auth.js](https://testdriven.io/blog/django-rest-authjs/)
