javascript - Auth0 rules - read metadata from getUser() -


i'm using auth0 rules add info user profile. when reading profile web app:

$userinfo = $auth0->getuser(); 

the data added rules not seem there. there method metadata?

$auth0->getusermetadata(); 

is there returns 'undefined index'

aha, appears need call

auth0.users.updateusermetadata(user.user_id, user.user_metadata) 

in rule .js before getusermetadata() return metadata app.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -