Laravel Passport Integration with Socialite to use Android / iOS App
I want to add Laravel Socialite so the user can log into my android app, now I am using Passport for auth (Passwpord Grant Token) so I want to login and return the token so the app can make the rest of the api calls.
How could I achieve this? I have searched but no luck.
Not sure what to add to the callback function to return the normal Passport response, something like this:
{
"token_type": "Bearer", // or other method
"expires_in": 31536000,
"access_token": "eyJ0eXAiOiJKV....WaYC14FGOPuhViVIE",
"refresh_token": "XhZKHr2S2Ikp...wMKWfmksñT/MxVQvg="
}
+3
source to share
No one has answered this question yet
Check out similar questions: