Documentation Index
Fetch the complete documentation index at: https://docs.mercurjs.com/llms.txt
Use this file to discover all available pages before exploring further.
Seller Module Options
In this document, you’ll learn about the options of the Seller Module.validInviteDuration
ThevalidInviteDuration option configures how long member invitation tokens remain valid before expiring.
Type: numberDefault:
604800000 (7 days in milliseconds)Unit: Milliseconds When a seller invites a team member, a JWT token is generated with an expiration time. This option controls that duration. For example, to set invitations to expire after 3 days:
medusa-config.ts
Calculation
To convert days to milliseconds:- 1 day:
86400000 - 3 days:
259200000 - 7 days:
604800000(default) - 14 days:
1209600000 - 30 days:
2592000000
Use Cases
Shorter Duration (1-3 days)- High-security marketplaces
- Urgent team additions
- Reduces risk of token compromise
- Casual onboarding processes
- International teams across time zones
- Reduces need to resend invitations