apple sign in is returning 419 error in laravel on callback function

387 Views Asked by At

I am working on login with apple using laravel framework using refrence GeneaLabs/laravel-sign-in-with-apple. I have followed all the steps carefully.after login function when callback function is run by apple it gives me error code 419 i.e. issue of missing csrf token. So, The apple is hitting callback function without csrf token.

Here is error image : click here to see error image

1

There are 1 best solutions below

0
On

Try with this in your web.php:

Route::get('/', function () {
    return view('auth.login');
});