public function getUser()
    {
        // Get the user info from auth0
        $auth0 = $this->getSDK();
        $user = $auth0->getUser();

        if ($user === null) {
            return;
        }

        return [
            'profile' => $user,
            'accessToken' => $auth0->getAccessToken(),
        ];
    }
public function getUser()
    {
        // Get the user info from auth0
        $auth0 = $this->getSDK();
        $user = $auth0->getUser();

        if ($user === null) {
            return;
        }

        return [
            'profile' => $user,
            'accessToken' => $auth0->getAccessToken(),
        ];
    }
public function getUser ( ) { // Get the user info from auth0 $ auth0 = $ this -> getSDK ( ) ; $ user = $ auth0 -> getUser ( ) ; if ( $ user === null ) { return ; } return [ 'profile' => $ user , 'accessToken' => $ auth0 -> getAccessToken ( ) , ] ; }
If the user is logged in, returns the user information.

@return array with the User info as described in https://docs.auth0.com/user-profile and the user access token
If the user is logged in returns the user information .