Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 0.0.0.0
- https://192.168.20.45:45455/api/users/authenticate/ net::ERR_CERT_AUTHORITY_INVALID
- return fetch('https://192.168.20.45:45455/api/users/authenticate/', requestOptions)
- .then(handleResponse)
- .then(user => {
- // login successful if there's a jwt token in the response
- if (user.token) {
- // store user details and jwt token in local storage to keep user logged in between page refreshes
- localStorage.setItem('user', JSON.stringify(user));
- }
- return user;
- });
Add Comment
Please, Sign In to add comment