How to handle organization invitation in React?

I’m using auth0 to enable my customers logging into their dashboard. each user must belong to organization. I am using a google authentication, so I can’t add users as members before they first loggin in, so I need to use the invitation feature.

I’m trying to login using the invitation and organization URL params recieved from the invite, but didn’t have any success:

let invitation = params.get("invitation") || undefined;
    let organization = params.get('organization') || undefined;
    if(invitation && organization) {
      let result = await loginWithRedirect({
        authorizationParams: {
          invitation,
          organization,
        }});
1 Like

any help? I need some way to handle invitations

2 Likes

I think I may be having the same issue. See: Organization Invitation Does not Create User

Did you ever figure it out?

Hi @omer2,

Use these docs to learn how to use the Management API to create a user invite:

If you want to check out the Management API endpoint for creating organization invites you can follow this link

If you have any other question feel free to let us know.

Have a good one,
Vlad

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.