Answer the question
In order to leave comments, you need to log in
How to make authorization through Google for API on Laravel?
There is an Android application, there is also an API written in Laravel, normal authorization works without problems, the problem occurs when I try to get user information from Google, for access I use the token that comes from the application and the google driver in Socialite, as follows:
$user = Socialite::driver('google')->userFromToken($request->access_token);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question