kyzegs/supabase-auth-bundle
Laravel bundle that integrates Supabase Auth into PHP apps: verifies Supabase-issued JWTs, syncs users, and adds guards and middleware for protecting routes. Includes drop-in configuration for email/password and OAuth-based sessions, designed for quick setup in Laravel projects.
Due diligence before any decision: v1.0.1 shipped with no descriptive release notes — only a changelog link. For a security-sensitive dependency, that is a process signal worth weighing. Pin to an exact version, review the commit diff between v1.0.0 and v1.0.1, and confirm maintainer activity, open-issue responsiveness, test coverage, and how JWT verification and key rotation are handled. A single-maintainer package on the auth critical path is a continuity risk; have a documented exit path (fall back to Laravel-native auth plus Socialite) before it becomes load-bearing.
Roadmap implication: budget for an "auth ownership" line item regardless of choice — either the cost of maintaining the integration and monitoring upstream Supabase Auth changes, or the cost of a future migration away from it.
Consider it when:
Look elsewhere when:
Practical gate: run a two-day spike. Wire the package into a throwaway Laravel app, exercise login/logout/token refresh/session expiry, and confirm error handling and logging are adequate for production debugging. Decide on the spike output, not the README.
For executives: Authentication is on the critical path of every product we ship, and it is expensive to build well. This package lets us delegate identity to Supabase rather than maintain it ourselves — potentially weeks of engineering saved per auth method, plus we stop owning password reset, MFA, and OAuth edge cases. The trade-off is a third-party dependency in our login flow and a young, single-maintainer integration layer. I am recommending a contained evaluation — a short spike and a security/continuity review — before we let it touch production. I am not recommending adoption today.
For engineering: This is a Laravel wrapper around Supabase Auth (GoTrue). It is at v1.0.1, and the patch arrived without descriptive release notes, so treat upgrades as code review items and pin versions. Before adoption we need answers on: JWT verification and signing-key rotation, session and refresh-token lifecycle, how Supabase outages or latency degrade our login path, test coverage, and maintainer responsiveness. We also need a documented fallback to Laravel-native auth in case the package stalls. If you spike it, test the unhappy paths — expired tokens, revoked sessions, provider outages — not just the happy-path login.
Recommendation: Evaluate, do not adopt yet. Success criteria for a go decision: passing spike on auth lifecycle flows, acceptable answers on key management and failure modes, an identified fallback plan, and a maintainer-health check. Revisit if the project publishes substantive, security-relevant releases and gains adoption breadth.
How can I help you explore Laravel packages today?