Skip to main content
Skip to main content

User Module Options

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

Module Options

medusa-config.js
const modules = {
// ...
user: {
resolve: "@medusajs/user",
options: {
jwt_secret: process.env.JWT_SECRET,
},
},
}
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:

JWT_SECRET=supersecret
Was this section helpful?