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
Post a Comment