Skip to content

Instantly share code, notes, and snippets.

@OrionStark
Created February 11, 2020 06:22
Show Gist options
  • Save OrionStark/08d67722779a8e02a39029f904509a04 to your computer and use it in GitHub Desktop.
Save OrionStark/08d67722779a8e02a39029f904509a04 to your computer and use it in GitHub Desktop.
function __generateGatewaySignature(serviceSecretKey, callback) {
jwt.sign({
gateway: 'ORION_GATEWAY',
gateway_secret: SECRET_KEY,
}, serviceSecretKey, { expiresIn: 1800000 }, callback)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment