Analysis updated 2026-05-18
Add social login (Google, GitHub, Apple, and more) to a Medusa storefront without rewriting the auth system.
Enable passwordless magic-link or passkey login for customers on a Medusa store.
Let admin users sign in through OAuth while keeping admin account creation restricted to invited users only.
| nualt/medusa-plugin-better-auth | 000madz000/payload-test-api-route-handler | aliansari22/pdfclear | |
|---|---|---|---|
| Stars | 3 | 3 | 3 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | moderate | easy | easy |
| Complexity | 3/5 | 2/5 | 2/5 |
| Audience | developer | developer | general |
Figures from each repo's GitHub metadata at analysis time.
Requires an existing Medusa v2 project, a Postgres database, and Better Auth 1.5.0 or newer.
This is a plugin for Medusa, an open source platform for building online stores, that adds modern login options by connecting it to a separate authentication service called Better Auth. Rather than replacing how Medusa handles logins internally, this plugin acts as a bridge: Better Auth manages the actual sign-in process, including social logins like Google or GitHub, email and password, passwordless magic links, passkeys, and optional two-factor authentication, and then hands off a verified session to Medusa, which issues its own standard login token for either a shopper or an admin user. Because Medusa keeps issuing its normal tokens after the handoff, a store's existing protected pages, admin dashboard, and storefront continue working exactly as before, without needing to be rewritten. The plugin also includes a login widget for the Medusa admin dashboard, and it stores Better Auth's own data inside the same Postgres database Medusa already uses. Setting up social logins like Google or GitHub only requires adding the right pair of environment variables for each provider, and the login button and icon appear automatically. Providers not built in can still be added manually. There is a dedicated command for applying Better Auth's database changes during a production deployment, and it is safe to run repeatedly. A notable safety rule is that admin accounts can never be created automatically through social login, an OAuth sign-in can only be linked to an admin account that was already invited and only once its email is verified. The author describes the package as early but usable, built out of a real Medusa v2 project and tested against specific versions of Medusa and Better Auth, Node 20 or newer, and both pnpm and npm package managers. The project is released under the MIT license.
A Medusa e-commerce plugin that adds modern logins, social auth, and passkeys through Better Auth without replacing Medusa's own tokens.
Mainly TypeScript. The stack also includes TypeScript, Medusa, Better Auth.
MIT license: use, modify, and distribute freely, including commercially, as long as you keep the copyright notice.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.