mikebronner / laravel-sign-in-with-apple

Provide "Sign In With Apple" functionality to your Laravel app.
MIT License
447 stars 67 forks source link

redirect URL doesn't contain the authorization code #44

Open AminaOun opened 2 years ago

AminaOun commented 2 years ago

the sign in works fine but in the response when I retun the user variable instead of this :

image

it gives me this :

image

here is my code :

public function handleAppleCallback(Request $request)
{
    // get abstract user object, not persisted
    $user = Socialite::driver("sign-in-with-apple")
        ->stateless()
        ->user();

    $this->_registerOrLoginUser($user);
   $user->token;
    return response()->json($user);
}

Anyone knows how can I get the auth code ?

AminaOun commented 2 years ago

up

fesalali commented 2 years ago

up