21 lines
453 B
PHP
21 lines
453 B
PHP
<?php
|
|
|
|
namespace Laravel\Socialite\Contracts;
|
|
|
|
interface Provider
|
|
{
|
|
/**
|
|
* Redirect the user to the authentication page for the provider.
|
|
*
|
|
* @return \Symfony\Component\HttpFoundation\RedirectResponse|\Illuminate\Http\RedirectResponse
|
|
*/
|
|
public function redirect();
|
|
|
|
/**
|
|
* Get the User instance for the authenticated user.
|
|
*
|
|
* @return \Laravel\Socialite\Contracts\User
|
|
*/
|
|
public function user();
|
|
}
|