hexvolt / budget

0 stars 0 forks source link

Frontend: create authentication interface #21

Open hexvolt opened 7 years ago

hexvolt commented 7 years ago

Need to create a component for authentication. Implement the token authentication mechanism in the frontend app. Implement functionality:

hexvolt commented 7 years ago

an interesting approach for sign up workflow: https://github.com/reactjs/redux/issues/297#issuecomment-124116124

hexvolt commented 7 years ago

also to consider for managing forms later on: http://redux-form.com/7.0.3/

hexvolt commented 7 years ago

~How do I disable csrf check when using Token Authentication?~ It is disabled already in DRF if the TokenAuthentication is on the first place. The issue was in the absence of trailing slash in the url, so that non-API Django view was triggered and, therefore, required a csrf token.

hexvolt commented 7 years ago

How to avoid long relative imports: add 'src' folder to the webpack.config.js:

resolve: {
    modules: ['src', 'node_modules', 'bower_components'],
    ....