Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirect URL doesn't contain the authorization code #44

Open
AminaOun opened this issue Apr 21, 2022 · 2 comments
Open

redirect URL doesn't contain the authorization code #44

AminaOun opened this issue Apr 21, 2022 · 2 comments

Comments

@AminaOun
Copy link

AminaOun commented Apr 21, 2022

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
Copy link
Author

up

1 similar comment
@fesalali
Copy link

up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants