Skip to content

Instantly share code, notes, and snippets.

@orobogenius
Created April 9, 2019 23:03
Show Gist options
  • Save orobogenius/ea15b1d847d6c5efbc8025fb739f04c8 to your computer and use it in GitHub Desktop.
Save orobogenius/ea15b1d847d6c5efbc8025fb739f04c8 to your computer and use it in GitHub Desktop.
<?php
namespace App\OAuth;
interface SocialUserProviderInterface
{
/**
* Get a social user from the provider by their access token.
*
* @param string $provider
* @param string $accessToken
*
* @return \League\OAuth2\Server\Entities\UserEntityInterface
*/
public function getUserEntityByAccessToken($provider, $accessToken);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment