Guest User

Untitled

a guest
Jan 16th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 0.0.0.0
  2.  
  3. https://192.168.20.45:45455/api/users/authenticate/ net::ERR_CERT_AUTHORITY_INVALID
  4.  
  5. return fetch('https://192.168.20.45:45455/api/users/authenticate/', requestOptions)
  6. .then(handleResponse)
  7. .then(user => {
  8. // login successful if there's a jwt token in the response
  9. if (user.token) {
  10. // store user details and jwt token in local storage to keep user logged in between page refreshes
  11. localStorage.setItem('user', JSON.stringify(user));
  12. }
  13.  
  14. return user;
  15. });
Add Comment
Please, Sign In to add comment