Overtrue\Socialite\Providers\AbstractProvider::redirect PHP Метод

redirect() публичный Метод

Redirect the user of the application to the provider's authentication screen.
public redirect ( string $redirectUrl = null ) : RedirectResponse
$redirectUrl string
Результат Symfony\Component\HttpFoundation\RedirectResponse
    public function redirect($redirectUrl = null)
    {
        $state = null;
        if (!is_null($redirectUrl)) {
            $this->redirectUrl = $redirectUrl;
        }
        if ($this->usesState()) {
            $state = sha1(uniqid(mt_rand(1, 1000000), true));
            $this->request->getSession()->set('state', $state);
        }
        return new RedirectResponse($this->getAuthUrl($state));
    }