šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

vue-jwt-decode

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-jwt-decode

Tiny JWT decoder for Vue.js

0.1.0
latest
npm
Version published
Weekly downloads
5K
27.21%
Maintainers
1
Weekly downloads
Ā 
Created
Source

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.

FAQs

Package last updated on 16 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts