Invite a member
inviteSellerWorkflow creates a MemberInvite and sends the invitation email.
The invitee sets up access and is linked to the store when they accept.
src/api/custom/invite/route.ts
Add a member directly
When you already have the user, for example during a migration, add them to a store without the invite step. UseaddSellerMemberWorkflow.
Accept an invite
The invitee’s acceptance runs throughacceptMemberInviteWorkflow. It links the
member to the store, and if the email already exists, it reuses their account.