Skip to content

Instantly share code, notes, and snippets.

@tanvirraj
Created September 28, 2018 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanvirraj/c23923d5016eec3d6d5ecbe6235d8faa to your computer and use it in GitHub Desktop.
Save tanvirraj/c23923d5016eec3d6d5ecbe6235d8faa to your computer and use it in GitHub Desktop.
// axios
// .post(baseURL + '/auth/local/register', {
// username: username,
// email: email,
// password: password
// })
// .then(response => {
// window.localStorage.setItem('jwt', response.data.jwt);
// if (response.statusText === 'OK') {
// this.setState(() => ({
// toDashboard: true
// }));
// }
// })
// .catch(() => {});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment