Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- axios.post('/rest-auth/login/', {
- username: 'nakee',
- password: 'kaluzghnyy'
- }).then(response => dispatch({
- type: LOGIN_SUCCESS,
- payload: response.data
- })).catch(error => dispatch({
- type: LOGIN_ERROR,
- payload: error
- }))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement