Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Supabase Auth Bundle Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for authentication. This package is a thin Laravel bridge to Supabase Auth (GoTrue), so the real decision is whether your auth stack should be Supabase-hosted rather than built in-house or handled by first-party Laravel tooling (Breeze, Jetstream, Fortify, Socialite, Sanctum). Adopting it is effectively a commitment to Supabase as your identity provider.
  • Feature velocity on auth-adjacent roadmap items. If the package tracks Supabase Auth capabilities, it can shortcut delivery of email/password, magic links, OAuth providers, MFA, and JWT issuance — work that otherwise consumes weeks of engineering and ongoing security review. Treat this as a "time-to-market" input, not a cost-saving one.
  • Architecture and data-residency choices. Because Supabase can be self-hosted, this package also informs the decision of whether user identity data lives in a managed third party or inside your own infrastructure — a question that will surface in enterprise deals, DPAs, and security questionnaires.
  • Mobile/SPA expansion. If the roadmap includes a mobile app or a JS frontend, a Supabase-backed identity layer gives you one auth system across Laravel and non-Laravel clients, reducing the chance of two divergent login implementations.
  • Use cases where it fits cleanly: greenfield Laravel SaaS products, internal tools, MVPs and prototypes, products already using Supabase for database/storage, and teams without a dedicated identity engineer.
  • Use cases where it does not: multi-tenant enterprise products with complex SSO/SAML/SCIM requirements, regulated environments demanding audited identity providers, or products where Laravel-native auth already covers 100% of needs.

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.

When to Consider This Package

Consider it when:

  • You are starting a new Laravel application and have not yet committed to an auth implementation.
  • Supabase is already, or is likely to become, part of your stack (database, storage, realtime).
  • You need multiple auth methods (OAuth, magic link, MFA) faster than the team can responsibly build and audit them.
  • You want a single identity system shared across a Laravel backend and one or more non-Laravel clients.
  • You have a small team without dedicated security/identity expertise and prefer to outsource that surface.
  • You are comfortable with, or actively want, a managed or self-hosted Supabase dependency in your architecture.

Look elsewhere when:

  • You need enterprise identity features — SAML SSO, SCIM provisioning, fine-grained RBAC, per-tenant identity isolation — that Supabase Auth does not natively cover.
  • Compliance obligations (SOC 2 scope, HIPAA, data residency, vendor risk review) make adding a third-party identity processor expensive or slow.
  • Laravel's first-party auth stack already satisfies your requirements; adding an external IdP for parity features is net negative complexity.
  • Your team requires a vendor with SLAs, security certifications, and a support contract — an early-version community package does not provide that.
  • You cannot tolerate a low-ceremony release process. A patch release with no descriptive notes on an auth package suggests you will be doing your own change auditing on every upgrade.
  • The integration is not maintained actively enough to track upstream Supabase Auth API changes; a stale bridge on the login path fails loudly and at the worst time.

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.

How to Pitch It (Stakeholders)

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin