Skip to content

Instantly share code, notes, and snippets.

charltoons / autoconfirm.js
Created Aug 26, 2017
AWS Cognito Lambda PreSignup Auto-Confirm Trigger
View autoconfirm.js
'use strict';
exports.handler = (event, context, callback) => {
console.log('Received event:', JSON.stringify(event, null, 2))
const modifiedEvent = event
// check that we're acting on the right trigger
if (event.triggerSource === "PreSignUp_SignUp"){
// auto confirm the user
ygotthilf /
Last active Sep 17, 2021
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out
cat jwtRS256.key