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

getUserByToken($token) results in error #14

Closed
adrian-schnell opened this issue Mar 24, 2020 · 4 comments
Closed

getUserByToken($token) results in error #14

adrian-schnell opened this issue Mar 24, 2020 · 4 comments

Comments

@adrian-schnell
Copy link

Calling Socialite::driver('sign-in-with-apple')->userFromToken($token); results in an error:

Argument 1 passed to GeneaLabs\LaravelSignInWithApple\Providers\SignInWithAppleProvider::mapUserToObject() must be of the type array, null given, called in /var/www/vendor/laravel/socialite/src/Two/AbstractProvider.php on line 232

@mikebronner
Copy link
Owner

Hi @adrian-schnell, were you able to fix the issue?

@AgustinV08
Copy link

Error still pops up when using the userFromToken function

@mikebronner
Copy link
Owner

I don't believe userFromToken is supported in this package. See readme for implementation specifics:

$user = Socialite::driver("sign-in-with-apple")
            ->user();

@Skyquek
Copy link

Skyquek commented Jul 22, 2021

Is there any workaround to get the function userFromToken() to work?

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

4 participants