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