Skip to content
This repository was archived by the owner on Oct 26, 2018. It is now read-only.

Authenticated route(s) with JWT method #150

Closed
es6Test opened this issue Dec 31, 2015 · 2 comments
Closed

Authenticated route(s) with JWT method #150

es6Test opened this issue Dec 31, 2015 · 2 comments

Comments

@es6Test
Copy link

es6Test commented Dec 31, 2015

Hi, I was wondering if someone could provide an example of the best way to hook with up this router with login/authenticated state.

Ideally I would like to specified if any specified route(or any child routes) require authentication, and then redirection if not to login route.

thanks

@neverfox
Copy link

neverfox commented Jan 1, 2016

This library lets react-router do its thing, so the approach would be whatever approach works with react-router. There are examples of this out there:

https://github.com/auth0/react-flux-jwt-authentication-sample
https://github.com/lynndylanhurley/redux-auth
https://gist.github.com/iNikNik/1eabfc6bcc132384368c

@jlongster
Copy link
Member

Yes, please ask this question in the react-router discord channel or some other place like that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants