Skip to content

Instantly share code, notes, and snippets.

View Colbydude's full-sized avatar
🎸

Colby Terry Colbydude

🎸
View GitHub Profile
@Colbydude
Colbydude / aws-jwt-authorizer.js
Created October 23, 2018 16:42
Quick and dirty AWS Authorizer for Twitch Extensions.
const jwt = require('jsonwebtoken');
// Create a Secrets Manager client
const SecretManager = new AWS.SecretsManager({
endpoint: "<SECRET MANAGER ENDPOINT HERE>",
region: "<REGION>"
});
/**
* Authorizer to validate JWTs signed by Twitch.