@@ -43,3 +43,12 @@ A `/server` process and `/client` process will listen to `4000` and `3002` port,
- The resource server authenticates the request according to the attached access toekn and decides to return an email (if the email belongs to the resource owner) or null (if the email doesn't belong to the resource owner).
To analyze the flow, focus on `/server/index.js` and `/client/index.js`.
---
#### How to refresh token
```sh
curl -X POST -H'Content-Type: application/x-www-form-urlencoded'-d'grant_type=refresh_token&client_id=1b0fbe1836d2133ba3c3d3475b3bad9acae57ff6&client_secret=68529ae2c23361ebd5f4946f09c1cf36f44bb580&refresh_token=47ad5e82afafd0289bbd7ad914674a1f41176cbd' http://localhost:4000/oauth2/token