SuperAgent JWT Plugin
a superagent plugin to retrieve/add JWT from/to headers, storing with localStorage.
this plugin:
- tries to retrieve JWT from response header and store it to localStorage
- set JWT in request Authorization header if any was saved to localStorage before
Installation
$ npm i superagent-jwt -S
Usage
var request = ;var JWT = ; var jwt = ; request ;