This file contains 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
var email = "" | |
config['registration'] = { | |
preSubmit: function (postData, onSuccess, onFailure) { | |
email = postData.email | |
onSuccess(postData); | |
}, | |
postSubmit: async function (response, onSuccess, onFailure) { | |
// WARNING DEMO ONLY, NOT PRODUCTION | |
//these two calls should be moved to a backend-for-frontend where they can be called properly | |
// DO NOT PUT TOKENS IN YOUR FRONTEND CODE |