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
php oauth laravel laravel-5.4 laravel-socialite


source to share


No one has answered this question yet

Check out similar questions:

five
Facebook Socialite login with Laravel 5.1
1
Many questions about using Laravel's passport
1
Using Laravel Passport with Load Balancer
1
How to create REST API with secular language and passport in laravel
0
Laravel Socialite Google login with only one domain
0
Login to Laravel via Socialite (Google, Facebook, etc.) and create an access token for my own app.
0
Laravel Passport, internal oAuth AFTER SOCIAL login.
0
Laravel Socialite Login and Sign Up REST - Better Stream?
0
Laravel shines for tokens for already logged in user
0
How to provide API access token from frontend using Laravel passport



All Articles
Loading...
X
Show
Funny
Dev
Pics