Files
medusa-store/www/apps/resources/app/commerce-modules/user/module-options/page.mdx
Shahed Nasser b6df24463d docs: updates for breaking changes (#9558)
- Update modules registration
- Update `medusa-config.js` to `medusa-config.ts`
- Update the out directory in the admin deployment guide
- Update logger imports
- Other fixes

Note: will need to re-generate references afterwards

Closes #9548
2024-10-14 10:40:30 +00:00

71 lines
1.2 KiB
Plaintext

---
sidebar_label: "Module Options"
---
import { Table } from "docs-ui"
export const metadata = {
title: `User Module Options`,
}
# {metadata.title}
In this document, you'll learn about the options of the User Module.
## Module Options
```ts title="medusa-config.ts"
import { Modules } from "@medusajs/framework/utils"
// ...
module.exports = defineConfig({
// ...
modules: [
{
resolve: "@medusajs/user",
options: {
jwt_secret: process.env.JWT_SECRET,
},
},
]
})
```
<Table>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Option</Table.HeaderCell>
<Table.HeaderCell>Description</Table.HeaderCell>
<Table.HeaderCell>Required</Table.HeaderCell>
</Table.Row>
</Table.Header>
<Table.Body>
<Table.Row>
<Table.Cell>
`jwt_secret`
</Table.Cell>
<Table.Cell>
A string indicating the secret used to sign the invite tokens.
</Table.Cell>
<Table.Cell>
Yes
</Table.Cell>
</Table.Row>
</Table.Body>
</Table>
### Environment Variables
Make sure to add the necessary environment variables for the above options in `.env`:
```bash
JWT_SECRET=supersecret
```