git404hub

what is medusa-plugin-better-auth fr?

nualt/medusa-plugin-better-auth — explained in plain English

Analysis updated 2026-05-18

3TypeScriptAudience · developerComplexity · 3/5LicenseSetup · moderate

tl;dr

A Medusa e-commerce plugin that adds modern logins, social auth, and passkeys through Better Auth without replacing Medusa's own tokens.

vibe map

mindmap
  root((medusa-plugin-better-auth))
    What it does
      Better Auth bridge
      Social OAuth login
      Admin login widget
    Tech stack
      TypeScript
      Medusa
      Better Auth
      PostgreSQL
    Use cases
      Store social login
      Passwordless auth
    Audience
      Developers
      Medusa store builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Add social login (Google, GitHub, Apple, and more) to a Medusa storefront without rewriting the auth system.

VIBE 2

Enable passwordless magic-link or passkey login for customers on a Medusa store.

VIBE 3

Let admin users sign in through OAuth while keeping admin account creation restricted to invited users only.

what's the stack?

TypeScriptMedusaBetter AuthPostgreSQLNode.js

how it stacks up fr

nualt/medusa-plugin-better-auth000madz000/payload-test-api-route-handleraliansari22/pdfclear
Stars333
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderateeasyeasy
Complexity3/52/52/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 30min

Requires an existing Medusa v2 project, a Postgres database, and Better Auth 1.5.0 or newer.

MIT license: use, modify, and distribute freely, including commercially, as long as you keep the copyright notice.

in plain english

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.

prompts (copy fr)

prompt 1
Help me install and configure medusa-plugin-better-auth in my Medusa v2 project.
prompt 2
Explain how the session handoff between Better Auth and Medusa's native tokens works in this plugin.
prompt 3
Show me how to set up Google and GitHub social login using the zero-config environment variables.
prompt 4
Walk me through running the production migration command for this plugin during deployment.

Frequently asked questions

what is medusa-plugin-better-auth fr?

A Medusa e-commerce plugin that adds modern logins, social auth, and passkeys through Better Auth without replacing Medusa's own tokens.

What language is medusa-plugin-better-auth written in?

Mainly TypeScript. The stack also includes TypeScript, Medusa, Better Auth.

What license does medusa-plugin-better-auth use?

MIT license: use, modify, and distribute freely, including commercially, as long as you keep the copyright notice.

How hard is medusa-plugin-better-auth to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is medusa-plugin-better-auth for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.