Skip to content

Instantly share code, notes, and snippets.

@mgmarino
Created May 24, 2017 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgmarino/eacf1e94df42956eb14debf5b0989654 to your computer and use it in GitHub Desktop.
Save mgmarino/eacf1e94df42956eb14debf5b0989654 to your computer and use it in GitHub Desktop.
var jwkToPem = require("jwk-to-pem");
var jwk = JSON.parse(process.env.OAUTH_TOKEN_KEY)
var output = {
signingKey: jwkToPem(jwk, {
private: true
}),
verifierKey: jwkToPem(jwk, {
private: false
})
};
console.log(JSON.stringify(output));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment