mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-04 02:04:06 +00:00
10 lines
323 B
TypeScript
10 lines
323 B
TypeScript
const INVITATION_ACCEPT_PATH = "/invitation/accept";
|
|
|
|
/** Link an invitee opens to join the tenant; the API only hands back the token. */
|
|
export function buildInvitationAcceptLink(
|
|
token: string,
|
|
origin: string,
|
|
): string {
|
|
return `${origin}${INVITATION_ACCEPT_PATH}?invitation_token=${encodeURIComponent(token)}`;
|
|
}
|