docs: added send invitation guide (#3994)

* docs: added send invitation guide

* eslint fixes
This commit is contained in:
Shahed Nasser
2023-05-03 12:05:07 +03:00
committed by GitHub
parent d44737c049
commit f8532cb7fd
5 changed files with 205 additions and 12 deletions

View File

@@ -66,3 +66,9 @@ The invitation process typically follows these steps in the Medusa backend:
3. When the new user accepts the invite, the invitation is validated first to ensure its not expired. If its not expired, a new user is created using the `UserService`'s [create method](../../references/services/classes/UserService.md#create).
If an invitation is expired, an existing user can resend the invite either using the Resend Invite endpoint or using the `InviteService`'s resend method. This would generate a new token and reset the expiry date.
---
## See Also
- [How to send an invitation email](./backend/send-invite.md)