exports.onExecutePostUserRegistration = async (event, api) => {
api.user.setAppMetadata('test', 'ok');
}
Hey there @questsin!
There’s no api
object in a post user registration Action which is why you’re unable to set the app metadata - Instead you’ll want to move this code to a pre user registration action. A post login Action would work as well.
Hope this helps!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.