Secure backend authentication system for api and frontend frameworks.
With axios:
// Login request
axios.post('/login', {
username: 'Fred',
password: 'abc123#21'
})
.then(res => {
console.log(res);
})
.catch(error => {
console.log(error);
});
// Signup request
axios.post('/signup', {
username: 'Fred',
password: 'abc123#21',
email: '[email protected]'
})
.then(res => {
console.log(res);
})
.catch(error => {
console.log(error);
});
- Clone the repo
- Add it to your project
- Use
concurrently
package to start this backend and your front end project - Lastly, use axios to send requests to the backend api
- Having problem setting up?
- No problem! contact me on
[email protected]
or open an issue.
- No problem! contact me on