The production-ready Medusa DTC Starter is outRead the announcement
A

Auth emailpass

Email and password credential authentication provider for Medusa

Included in @medusajs/medusa, no separate install needed
Category
Built by
Version
2.22.4
Last updated
7 hours ago
Monthly downloads
Loading downloads

Medusa logo

@medusajs/auth-emailpass

Documentation | Website

Building blocks for digital commerce

Medusa is released under the MIT license. PRs welcome! Discord Chat Follow @medusajs

Email/Password Auth Module Provider for Medusa: authenticates users and customers with an email (or other identifier) and a password hashed with scrypt. It's the default auth provider of the Auth Module, so admin users and customers can log in with email and password out of the box. It ships with and is registered through the path.

At a glance

Package
TypeModule Provider (Auth Module)
Provider ID
Registered by defaultYes, with
Import from

Installation

No installation needed. The provider is a dependency of and is registered by default.

Usage

You only need to register the provider yourself to pass options, or when you override the Auth Module's array (for example, to add another provider). Keep in the list in that case:

Configuration

OptionTypeDescriptionDefault
The scrypt parameters used to hash passwords.

Resources