Skip to content

Client-side JWT auth package for Vue.js (and Quasar) applications

License

Notifications You must be signed in to change notification settings

mspiderv/vuejwtauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Web Tokens auth for Vue.js and Quasar

This is a client-side JSON Web Tokens (JWT) authentication package for Vue.js and Quasar applications.

This is not a server-side solution. If you need a server-side JWT auth, then take a look at our Laravel server-side package. - comming soon

Features

  • Login functionality.
  • Remember me functionality. Stores JWT in token storage, using one of the following drivers:
    • cookie driver (recommended).
    • localStorage driver.
    • You can create your own token storage driver.
  • Logout functionality.
    • Automatically logout idle users (after 5 minutes by default, but you can configure it or fully disable).
  • Fetch user functionality (retrieve any extra information about logged user from API).
  • Automatically refreshes JWT to make it valid for ever (based on JWT exp property).
  • Decodes JWT to JSON.
    • Allows you to read information from JWT directly.
    • Uses jwt-decode under the hood.
    • You can create your own token decoder driver.
  • Sends HTTP requests to your JWT auth API, using one of the following drivers:
    • Axios HTTP driver.
    • You can create your own HTTP driver.
  • Uses Vuex under the hood, which allows you to use all Vuex module functionality directly.
  • Fully configurable.

Contents

  1. Installation
  2. Usage
  3. Protecting routes
  4. Configuration

Requirements

  1. This package assumes, you use VueRouter in your application.
  2. JWT auth server. (Do you need a server-side JWT auth solution? Take a look at our Laravel server-side package - comming soon)

Thanks to

These are the main packages we use under the hood.

About

Client-side JWT auth package for Vue.js (and Quasar) applications

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages