Skip to content

Fetching Quotes with API Middleware #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tarkanlar opened this issue May 10, 2016 · 2 comments
Closed

Fetching Quotes with API Middleware #4

tarkanlar opened this issue May 10, 2016 · 2 comments

Comments

@tarkanlar
Copy link

It would be really great if there would be an example and a middleware as explained here.
https://auth0.com/blog/2016/01/04/secure-your-react-and-redux-app-with-jwt-authentication/

@cloudmu
Copy link
Owner

cloudmu commented Aug 2, 2016

The JWT based authentication on client side is implemented based on redux (with its actions and reducers). The async calls to the backend server for authentication is indeed done with thunk middleware. What's missing is to include the jwt token in authorization header in subsequent server API calls, so that the server can authenticate (i.e. validate the token signature).
(See #8)

@cloudmu cloudmu closed this as completed Aug 2, 2016
@cloudmu
Copy link
Owner

cloudmu commented Aug 26, 2016

JWT based API server is added back, thanks to the latest create-react-app feature Proxying API Requests

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

No branches or pull requests

2 participants