Emailpass Auth Module Provider
In this guide, you’ll learn about the Emailpass Auth Module Provider and how to configure it.
By using the Emailpass Auth Module Provider, you allow users to register and log in with an email and password.
Register the Emailpass Auth Module Provider#
The Emailpass Auth Module Provider is registered by default with the Auth Module.
If you want to pass options to the provider, add the provider to the providers
option of the Auth Module in your medusa-config.ts
:
1import { Modules, ContainerRegistrationKeys } from "@medusajs/framework/utils"2 3// ...4 5module.exports = defineConfig({6 // ...7 modules: [8 {9 resolve: "@medusajs/medusa/auth",10 dependencies: [Modules.CACHE, ContainerRegistrationKeys.LOGGER],11 options: {12 providers: [13 // other providers...14 {15 resolve: "@medusajs/medusa/auth-emailpass",16 id: "emailpass",17 options: {18 // options...19 },20 },21 ],22 },23 },24 ],25})
Module Options#
Configuration | Description | Required | Default |
---|---|---|---|
| An object of configurations for hashing the user's password. Refer to scrypt-kdf's documentation for accepted options. | No |
|
Related Guides#
Was this page helpful?