Skip to content

Extract JWT(JSON Web Token) for endpoint debugging

Simon Cheng edited this page Mar 16, 2022 · 1 revision

Extract JWT for endpoint debugging

  1. start the app from root. yarn run start:dev

  2. Log in at http://localhost:3000/auth

  3. After logging in, press f12 or Ctrl +Shift + I/ Cmd + Shift + I to open the Developer Tools.

  4. Go to Application, then firebaseLocalStorage and copy the value of the entire accessToken. Verify the jwt at https://jwt.io/ if needed image

  5. Go to swagger http://localhost:4200/api/ and paste the value into the Value field. image

  6. Test on any endpoint that requires authentication to see if the JWT functions correctly.

Clone this wiki locally