AuthN | Node SDK | Invite Endpoints
Invite Endpoints
Invite User
invite(request: InviteRequest): Promise<PangeaResponse<InviteResult>>Send an invitation to a user.
const response = await authn.user.invite({
inviter: "admin@email.com",
email: "joe.user@email.com",
callback: "https://www.myserver.com/callback",
state: "pcb_zurr3lkcwdp5keq73htsfpcii5k4zgm7",
});
Delete Invite
delete(id: string): Promise<PangeaResponse<{}>>Delete a user invitation.
await authn.user.invites.delete(
"pmc_wuk7tvtpswyjtlsx52b7yyi2l7zotv4a"
);
List invites
list(request: ListRequest): Promise<PangeaResponse<ListResult>>Look up active invites for the userpool.
const response = await authn.user.invites.list(
{
order: AuthN.ItemOrder.ASC,
order_by: AuthN.User.Invite.OrderBy.ID,
size: 20,
}
);