I have created a pre-registration action to add to the user’s metadata.
The test runs succesfully, yet after registration, the new user does not have the updated metadata.
Create Pre-User Registration Action (Node 16)
Add code + Deploy
Add action in the Pre-User registration flow + Save
Thanks for the detailed explanation and diagram, very helpful. Unfortunately both pre and post user registration Actions are available for database (non-federated) connections only at this time. Please feel free to add your feedback to the following request as this is definitely a hot topic
This function http://mybackend/new_userid, returns a new or existing (if email already in the database) userid.
I am not entirely clear on WHEN actions are executed. But, at least (and I think only) at authentication, so this should be executed for new and existing users, right?
UPDATE: Actually, not. It only works in the Auth0-sandbox. Is this the same reason here? Are Rules only available to database (non-federated) connections?
Rules are executed during authentication only (when a post login action would execute) and will apply to new users created/authenticating for the first time as well as existing users.
Both rules and actions are available for federated/social connections at login, but not pre or post user registration in the case of actions.