coderello/laravel-passport-social-grant
Laravel Passport Social Grant lets API clients exchange social network access tokens (such as Facebook, Google, or Apple) for Laravel Passport OAuth tokens, enabling passwordless social login for mobile and SPA apps.
User), not the grant plumbing.$client is now passed into resolveUserByProviderCredentials — is directly relevant if you plan to ship several first-party OAuth clients (iOS, Android, web, partner integrations). Resolution logic can now branch on which client is requesting the token, enabling per-platform user linking, client-scoped provisioning, or separate account namespaces without forking the package.Adopt it when:
users table, so account linking, email verification, and duplicate-account policy remain your product decisions.Look elsewhere when:
To executives: This is a small, narrowly scoped open-source package that lets our Laravel API accept "Sign in with Apple/Google/Facebook" tokens from our apps and return our own access token, so we can ship social login without building or maintaining a custom authentication endpoint. It is a build-vs-buy call that saves roughly the engineering cost of one custom grant implementation plus its ongoing security upkeep. The trade-off is standard open-source risk: single maintainer, no SLA, and a major-version upgrade (5.0.0) that requires a small code change on our side.
To engineering: Version 5.0.0 is a breaking release — resolveUserByProviderCredentials now receives the Passport $client alongside the provider name and credentials. Any custom resolver must be updated to the new signature. In exchange, resolution logic gains access to the requesting OAuth client, which is the hook we would need for per-platform or per-tenant account handling. Recommended posture: adopt 5.0.0 directly for new work, budget a contained ticket to migrate existing 4.x resolvers, and keep our user-resolution logic thin and well-tested since it is the only part of this flow we own.
How can I help you explore Laravel packages today?