I want to use passprt with socialite login
$stoken = $request->get('token');
$user = Socialite::driver('google')->userFromToken($stoken);
if the user exist
$token = $exist->createToken('')->accessToken;
else create the user from the user object and than
$token = $new->createToken('')->accessToken;
$stoken => social access token
$token => passport access token
Closing for lack of activity, hope you got the help you needed :)
You can try using this package :
Try this https://github.com/anandsiddharth/laravel-passport-socialite
Most helpful comment
$stoken = $request->get('token');$user = Socialite::driver('google')->userFromToken($stoken);if the user exist
$token = $exist->createToken('')->accessToken;else create the user from the user object and than
$token = $new->createToken('')->accessToken;$stoken => social access token
$token => passport access token