flootr / redux-login

simple react login example using redux with Auth0
7 stars 1 forks source link

Info about auth_token in auth.js #1

Open inchr opened 8 years ago

inchr commented 8 years ago

For what it's used auth_token function in the auth.js reducer ?

flootr commented 8 years ago

auth_token holds a token which would be sent on every request to the server so that the server can verify you are authorized to do that request, like json web token. You do not have to use an authentication mechanism like that, you could also e.g. store a session cookie.

Let me know if you have further questions.