Closed
Description
Hi,
Auth0User
declares $userInfo
and $accessToken
as private instead of protected.
This means our child class cannot override these values so we can't get getAuthIdentifier
to return a different identifier (our use case being we don't want the locally stored user to have 'sub' as the column name and would prefer something more obvious like 'auth0_id' in the db users table).
e.g.
<?php
namespace Example\Users;
class ExampleUser extends \Auth0\Login\Auth0User
{
public function getAuthIdentifier()
{
return $this->userInfo['auth0_id'];
}
}
Is this something you can fix?
Metadata
Metadata
Assignees
Labels
No labels