Skip to content

Should organization memberships and invitations be synced in the component? #32

@RobLMartin

Description

@RobLMartin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions