[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

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board
💡

Features / Fixes

Date

7 months ago

Author

Thorr Stevens

Subscribe to post

Get notified by email when there are changes.