PHP Interface Overtrue\Socialite\ProviderInterface

Show file Open project: overtrue/socialite

Public Methods

Method Description
redirect ( ) : RedirectResponse Redirect the user to the authentication page for the provider.
user ( Overtrue\Socialite\AccessTokenInterface $token = null ) : Overtrue\Socialite\User Get the User instance for the authenticated user.

Method Details

redirect() public method

Redirect the user to the authentication page for the provider.
public redirect ( ) : RedirectResponse
return Symfony\Component\HttpFoundation\RedirectResponse

user() public method

Get the User instance for the authenticated user.
public user ( Overtrue\Socialite\AccessTokenInterface $token = null ) : Overtrue\Socialite\User
$token Overtrue\Socialite\AccessTokenInterface
return Overtrue\Socialite\User