For demonstration purpose only
Vue 3 Token Authentication example.
Uses:
- No CSS / pure HTML (except for errors ๐ฌ)
- Vue 3 using Options API (no Composition API)
- Vue Router 4
- Vuelidate for client-side form validation
- Storage using Pina and localStorage
- No setup() usage (except for Vuelidate ๐ฌ)
- Fake token authentication using Express Fake Token Auth on
http://127.0.0.1:3000
url
4 pages (views) using Vue Router:
/
: home (public)/login
: login form (guest only)/register
: register form (guest only)/account
: private page (auth only)
Actions:
- (manually) logout button
npm install
npm run dev
npm run build