Simple oauth app in Node.js. It's completely based on Async Tree Pattern. The main point of this app is to show that it's possible to create oauth app in the declarative way.
Node.js
, MongoDB
, @cuties
, JWT
(basic implementation, using @cuties/jwt).
- It's based on
@cuties
, so you can write your asyncronous code in the declarative way (without callbacks, Promises, and async/await abstractions). - You can see how authentication can be implemented with only simple external https requests.
- You can see how JWT works (@cuties/jwt).
docker-compose build
docker-compose up -d mongo
docker-compose up app
You can open it on http://localhost:8000/
First of all you need to install MongoDB on your machine.
Then type following commands:
git clone git@github.com:Guseyn/simple-oauth-app.git
npm install
npm run build
npm start
You can open it on http://localhost:8000/
User: {
_id,
name,
email,
password,
description,
signupDate
}
- Basic:
email
andpassword
- Google OAuth
- GitHub OAuth
All these types are synchronized, so you can everytime choose different way to sign in your profile.