Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate django authentication with react-router?

I am trying to build a website with react frontend and django backend. I used to have my landing page using django template and the after logging in, it will be a react app. But this time round, I would like to try a different approach. I want the entire application to be react frontend only. However, the issue now is how do I authenticate the user as they navigate across the website?

React 0.14

React Router 2.0

Django 1.8.8

like image 758
Mox Avatar asked Nov 08 '22 19:11

Mox


1 Answers

try JWT with Django+react, see: https://github.com/Seedstars/django-react-redux-jwt-base

like image 121
Will Avatar answered Nov 14 '22 21:11

Will