Laravel 5 geting InvalidStateException in AbstractProvider.php

前端 未结 12 1892
心在旅途
心在旅途 2020-12-03 22:30

I am trying to use login with facebook in laravel 5 using Socialize.

Here is my route file code.

Route::get(\'fb\', function ($face         


        
12条回答
  •  抹茶落季
    2020-12-03 23:00

    I got temporary solution for that.

    public function user()
    {
        //if ($this->hasInvalidState()) {
        //    throw new InvalidStateException;
        //}
    
        $user = $this->mapUserToObject($this->getUserByToken(
            $token = $this->getAccessToken($this->getCode())
        ));
        return $user->setToken($token);
    }
    

    comment the $this->hasInvalidState() if condition in AbstractProvider.php file and it's work fine.

提交回复
热议问题