Skip to main content

[Plugin] - More options for '@auth/driver' (1/3)

  • Generic authentication driver

  • Starts off with mock implementation

    • Can also be hooked up to a custom implementation

  • Merge a specific auth plugin to hook it up to an actual universal auth provider, e.g.

    • with/auth-clerk → (✅ done)

    • with/auth-work-os → (📆 planned)

    • with/auth-supabase → (📆 planned)

  • Follows the “workspace driver“ pattern:

    • Import auth essentials from `@auth/driver` (workspace)

      • useAuth(), useUser(), useOrg()

      • <UserButton />, <OrganisationSwitcher />

      • <UserProfile />, <OrganisationProfile />

      • …

    • Can config / app / swap actual implementations without changing app code

Status: Planned

Log in to comment and vote

No comments yet

Be the first to share your thoughts.