the sign in works fine but in the response when I retun the user variable instead of this :
it gives me this :
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);
}
the sign in works fine but in the response when I retun the user variable instead of this :
it gives me this :
here is my code :
Anyone knows how can I get the auth code ?