Using the universal login from a php web app. Here’s my auth0 invocation:
use Auth0\SDK\Auth0;
$auth0 = new Auth0([
'domain' => 'ultrasoundjelly.auth0.com',
'client_id' => '',
'client_secret' => '',
'redirect_uri' => 'https://www.sonoclipshare.com/ul/userverify.php',
'audience' => 'https://ultrasoundjelly.auth0.com/userinfo',
'scope' => 'openid profile user_metadata',
'persist_id_token' => true,
'persist_access_token' => true,
'persist_refresh_token' => true,
]);
$userInfo = $auth0->getUser();
But $userInfo['user_id']
is empty. The userid is stored in $userInfo['sub']
instead. Looks like my scope is getting ignored?