Skip to content

Releases: jason810496/FastAPI-Vue-OAuth2

Improvements : OAuth2 best practice & Frontend refactor

30 Nov 06:53
Compare
Choose a tag to compare

There are several improvements:

OAuth2 Best Practices:

  • The access_token should only be stored in memory (not in localStorage).
  • The refresh_token should be stored in HttpOnly cookies (not normal cookies).

Frontend Refactor:

  • Pinia is recommended for Vue3 projects, not VueX.
  • Use composition API instead of option API in Vue3.
  • Use data provider pattern to improve maintenance.

TODO Feature:

  • kubernetes deployment.