InviteMember roles as array
Hi in the docs it says we can set multiple roles in an invitation:
But when trying to do so I get error:
Types in the intellisense also says it has to be a string:
const response = await authClient.organization.inviteMember({
email: parsedValue.email,
role: parsedValue.roles, // Has to be string
})
0 Replies