Skip to content

A state of the art authentication example in Vue 3

Notifications You must be signed in to change notification settings

mma56k/Vue3AuthExample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue 3 authentication example

A state of the art implementation for authentication using the composition API and vue router.

Goals

The goal of this exmaple is to provide a state of the art, clean implementation of authentication that follows the vue conventions and, in addition, satisfies the following statements:

  • Uses Composition API and Vue 3
  • Uses vue-router to determine what pages are protected and what pages are not.
  • Does not use a global reactive variable that could theoretically be shared among apps and instead uses provide/inject to provide authentication on the app level.
  • HoC component to do the job instead of a plugin because provide/inject needs to be inside a setup().

About

A state of the art authentication example in Vue 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 56.3%
  • Vue 35.7%
  • HTML 8.0%