public function Authentication::userinfo in Auth0 Single Sign On 8.2
Make an authenticated request to the /userinfo endpoint.
@link https://auth0.com/docs/api/authentication#user-profile
Parameters
string $access_token Bearer token to use for the request.:
Return value
mixed
File
- vendor/
auth0/ auth0-php/ src/ API/ Authentication.php, line 326
Class
- Authentication
- Class Authentication
Namespace
Auth0\SDK\APICode
public function userinfo($access_token) {
return $this->apiClient
->method('get')
->addPath('userinfo')
->withHeader(new AuthorizationBearer($access_token))
->call();
}