laravel-sign-in-with-apple icon indicating copy to clipboard operation
laravel-sign-in-with-apple copied to clipboard

redirect URL doesn't contain the authorization code

Open AminaOun opened this issue 3 years ago • 2 comments

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 avatar Apr 21 '22 15:04 AminaOun

up

AminaOun avatar Apr 21 '22 15:04 AminaOun

up

fesalali avatar May 17 '22 08:05 fesalali