Skip to content

Instantly share code, notes, and snippets.

@davetownsend
Created August 13, 2019 00:24
Show Gist options
  • Save davetownsend/3fb14fcb5374ee7654944617589b4f39 to your computer and use it in GitHub Desktop.
Save davetownsend/3fb14fcb5374ee7654944617589b4f39 to your computer and use it in GitHub Desktop.
middy config
module.exports.verify = middy(verify).use(
ssm({
cache: true,
cacheExpiryInMillis: 5 * 60 * 1000,
setToContext: true,
names: {
ISSUER: `/example/${stage}/okta/issuer`,
CLIENT_ID: `/example/${stage}/okta/clientid`,
AUDIENCE: `/example/${stage}/okta/audience`
}
})
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment