SocialiteProviders / Providers

A Collection of Providers for Laravel Socialite
https://socialiteproviders.com
MIT License
487 stars 435 forks source link

can we make the userinfo_uri configurable? #1219

Closed guoxiangke closed 1 week ago

guoxiangke commented 1 week ago

Hi, I have a requirement to deploy Laravel to Vercel, which used /api , so the Laravel API I changed to v1/api/* , so I need change the LaravelPassport userinfo_uri to 'v1/api/user'. so can we make the userinfo_uri configurable? thanks.

https://github.com/SocialiteProviders/Providers/blob/1cf2b81f84a85e89f8c96ed1ad7344d1fd3ae3f4/src/LaravelPassport/Provider.php#L107

guoxiangke commented 1 week ago

the code should be

'userinfo_uri' => $this->getConfig('userinfo_uri');