User Module Options

In this document, you'll learn about the options of the User Module.

Module Options#

medusa-config.ts
1import { Modules } from "@medusajs/framework/utils"2
3// ...4
5module.exports = defineConfig({6  // ...7  modules: [8    {9      resolve: "@medusajs/user",10      options: {11        jwt_secret: process.env.JWT_SECRET,12      },13    },14  ],15})
OptionDescriptionRequired

jwt_secret

A string indicating the secret used to sign the invite tokens.

Yes

Environment Variables#

Make sure to add the necessary environment variables for the above options in .env:

Terminal
JWT_SECRET=supersecret
Was this page helpful?
Edit this page
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break