Auth0 Home Blog Docs

Post User Registration hook: app_metadata undefined

hooks
#1

Hi,

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

#2

This was confirmed as a bug by support

#3

Yes it was a bug.Thankfully myccpay