Laravel 5 geting InvalidStateException in AbstractProvider.php

前端 未结 12 1891
心在旅途
心在旅途 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

    So after doing some digging if found that the issue for me was that my nginx configuration was wrong and the url parameters (code and state) weren't passed to the index.php file properly and this way the check between the state from the session and the state from the url was failing. I modified my nginx conf to look like this and it worked fine.

    location / {
                try_files $uri $uri/ /index.php?$args;
        }
    

提交回复
热议问题