Can you add something to users app_metadata in pre user registration action?

Checking out actions, and wondered if the above is possible?

Hey there!

Let me follow up with the team on that!

1 Like

Hey there!

Managed to get a follow up on that front.

It should be like that:

/** @type {PreUserRegistrationAction} */
module.exports = async (event, context) => {
  return {
    user: {
      user_metadata: {
        "my_prop": "my_value"
      }
    }
  };
};

But right now we have a limitation where the metadata updates aren’t working in Passwordless flows (for both the pre-user-reg hook and the action). The team is working on that.

1 Like

Would this also work for app_metadata?

I was told it should :slight_smile:

1 Like