Hi @chrisar,
Welcome to the Auth0 Community!
This error happens when you are trying to use a module that was not installed in your Action’s Dependencies.
Let me also add that you can only install modules found here.
For this behavior, I recommend using a Post-Login Action instead of a Post-User Registration Action and checking if the user’s logins_count === 1
.
For example:
exports.onExecutePostLogin = async (event, api) => {
if(event.stats.logins_count === 1){
//YOUR CODE HERE
}
};
Please reach out if you have any additional questions.
Thanks,
Rueben