This repository shows, how the Organicity Accounts can be used with the passport-oauth2 extension for passport.js.
This code is forked from:
The modified example
- uses the boldt/passport-oauth2 extension, which decodes and verifies JWT tokens with node-jsonwebtoken
- uses the Authorization Code Flow
- is based on Django templates
git clone [email protected]:OrganicityEu/accounts-demo-passport.git
cd accounts-demo-passport
cp server/config.js.example server/config.js # add client_id and client_credential
npm install
npm start
Open: http://localhost:3000