This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.onExecutePostLogin = async (event, api) => { | |
// Check if user already has an email | |
if (!event.user.email) { | |
// Render your custom form (from Step 1) | |
api.prompt.render('collect-email-form'); | |
} | |
}; | |
exports.onContinuePostLogin = async (event, api) => { | |
// Grab the submitted email from the form |