ember-cli-jwt-decode

Ember addon for decoding json web tokens.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
ember-cli-jwt-decode
330.1.06 years ago8 years agoMinified + gzip package size for ember-cli-jwt-decode in KB

Readme

ember-cli-jwt-decode
This ember-cli addon decodes a JWT and returns the payload object. (Visit https://jwt.io/introduction/ for an intro to JSON Web Tokens.)

Installation

  • ember install ember-cli-jwt-decode

Demo site

Check out https://smashweaver.github.io/ember-cli-jwt-decode/.

Usage


import EmberObject from "@ember/object"
import jwtDecode from 'ember-cli-jwt-decode';
export default EmberObject.extend({ decodeJWT(token){
return jwtDecode(token);
} });

Acknowledgement

This is a repackaging of autho/jwt-decode to simplify integration with ember-cli apps.