use GuzzleHttp\Psr7\Request;
use Psr\Http\Client\ClientExceptionInterface;
use Psr\Http\Message\ResponseInterface;
-use wcf\data\user\User;
use wcf\system\request\LinkHandler;
use wcf\system\user\authentication\oauth\User as OauthUser;
use wcf\util\JSON;
return new OauthUser($parsed);
}
- #[\Override]
- protected function getInternalUser(OauthUser $oauthUser): User
- {
- return User::getUserByAuthData('github:' . $oauthUser->getId());
- }
-
#[\Override]
protected function getProviderName(): string
{