Auth0 Home Blog Docs

Post User Registration hook: app_metadata undefined



I’m creating a new user via the auth0 management api (auth0-python) and setting an app_metadata key. I can see this key with a value in the auth0 dashboard.

However my hook raises “TypeError: Cannot read property ‘created_by’ of undefined”," for code that references “user.app_metadata.created_by”

When I use the ‘Try’ tool on the hook page and set the key in the JSON, it works fine.

Any ideas? Thank you


This was confirmed as a bug by support


Yes it was a bug.Thankfully myccpay