get-convex / get-convex/workos-authkit

Should organization memberships and invitations be synced in the component?

Open
#32 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
22
Forks
11
Avg merge
6d 3h
Merged PRs (30d)
4

Description

I'm using WorkOS AuthKit for a multi-tenant B2B app and need to track organization memberships and invitations.

Currently, the component syncs users but not memberships/invitations. I've implemented webhook handlers in my app to sync these (similar to how the component syncs users), but it seems like this could be valuable to include in the component itself since:
1. Organizations/memberships are core WorkOS AuthKit concepts
2. Most B2B apps using WorkOS will need this to support showing memberships and invitations in app with convex.
3. It follows the same pattern as user syncing

Would you be open to a PR that adds organizationMemberships and invitations tables to the component? Or is the recommendation to keep these in the parent app? Happy to provide more context or a draft implementation if helpful.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.