The inviteUserByEmail method in the JavaScript client supports passing in an additional options object, which includes the redirectUrl and data properties. I can see both of these being useful, such as inviting a user to a specific tenant. In my specific case, the data property will be of use as the invite would not only be inviting a user into the system, but it also establishes a relationship between the user that initiated the invite and the user that was invited.
The inviteUserByEmail method in the JavaScript client supports passing in an additional options object, which includes the redirectUrl and data properties. I can see both of these being useful, such as inviting a user to a specific tenant. In my specific case, the data property will be of use as the invite would not only be inviting a user into the system, but it also establishes a relationship between the user that initiated the invite and the user that was invited.