How to automatically apply team access when new members accept invites in Memberstack?

Post author
Vladimir Babic

Hey team! Quick question. I'm using Memberstack in my React app, and I've noticed something odd. When I invite someone to join and they accept the invite and create an account, their team access isn't applied—they end up without a plan. Any ideas?

Also where can i find Api documentation around team functionality.

Comments

1 comment

  • Comment author
    A J

    Hey Vladimir Babic,

    I believe if you fetch the member who has joined a team, the response should have the member id, email etc. and the following info:

    "teams": {
    "belongsToTeam": false,
    "ownedTeams": [],
    "joinedTeams": []
    }

    "joinedTeams": [] will probably contain more information like team ID, plan name etc. which you can further make use of in your project.

    Hope this gives you some idea.

    0

Please sign in to leave a comment.