-
-
Save alavers/d9af102ca4cefac1a7e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jwt = require('jsonwebtoken'); | |
// Generate your own secret key for your app here https://app.supportkit.io | |
var KEY_ID = '55e9f9bf7a0ce5ca2d429c17'; | |
var SECRET = 'BFJJ88naxc5PZNAMU9KpBNTR'; | |
var signJwt = function() { | |
return jwt.sign({ | |
scope: 'app' | |
}, | |
SECRET, | |
{ | |
header: { | |
kid: KEY_ID | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ah, it seems they've changed it under our noses https://github.com/auth0/node-jsonwebtoken/blob/78bf0083df842e15cdaed5d0269da5b3215b3b41/CHANGELOG.md#600---2016-04-27