dumb question: since you already allow a gmail-google login(), are there any plans of also offering others, such as facebook, msn or github? if so, the use of thePhpLeague could be eliminated altogether. thePhpLeague seems to be poorly supported at best, and i discovered a flaw in using it. i attempted to report it, but i seriously doubt that i will hear anything back from them given the number of unanswered outstanding issues.
EDIT:
ok i see you have a FB login option:
https://auth0.com/docs/connections/social/facebook
Specifically, you have a pretty good example of a php script that uses both Auth0 login as well as google-gmail. i would like to see a nice short SPA script that also does FB and perhaps msn&github, all on the same script - is this possible?
NOTE: i have been trying to get thePhpLeague to work, but then i realized its going to be pretty difficult to handle page-refresh. however, Auth0 seems to handle page fresh with grace and ease!! so now i am wondering about abandoning thePhpLeague since it does not appear to be supported.
** suggestion: At the bottom of your excellent php page, i strongly recommend also including a SPA example in addition to having the separate index.php, login.php, logout, etc on different pages. i did a cut-paste to put together the following:
<?php
//session_start();
require 'vendor/autoload.php';
use Auth0\SDK\Auth0;
$auth0 = new Auth0([
'domain' => 'dXXXXXXXXXXXXXXXm.auth0.com',
'client_id' => 'LXXXXXXXXXXXXXXXXXXXXXXXXXXXXX3',
'client_secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
'redirect_uri' => 'https://XXXXXXXXXXXXXXXX.site/auth0/index.php',
'persist_id_token' => true,
'persist_access_token' => true,
'persist_refresh_token' => true,
]);
$userInfo = $auth0->getUser();
if (!$userInfo) {
$auth0->login();
return;
// We have no user info
// See below for how to add a login link
} else {
printf( 'Hello %s!', htmlspecialchars( $userInfo['name'] ) );
// User is authenticated
// See below for how to display user information
}