Skip to content

nilbert/vue-jwt-decode

 
 

Repository files navigation

vue-jwt-decode

Tiny JWT decoder for Vue.js

Installation

npm install vue-jwt-decode

Usage

import VueJwtDecode from 'vue-jwt-decode'

// like this
VueJwtDecode.decode("<your jwt>")

// or like this
Vue.use(VueJwtDecode)
Vue.jwtDec("<your jwt>")

// or in component
this.$jwtDec("<your jwt>")

Error handling

The lib is so tiny it doesn't have any error handling. You'll need to try - catch by yourself.

About

Tiny JWT decoder for Vue.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.0%
  • HTML 5.1%
  • Vue 3.9%