vue-jwt-decode

0.1.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    6,464
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    6,464
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i vue-jwt-decode

Weekly Downloads

6,464

Version

0.1.0

License

MIT

Last publish

Collaborators

  • oskar1233