This commit is contained in:
2025-07-10 14:44:06 +03:00
parent 7b71da3825
commit 8e82736f09
7 changed files with 208 additions and 43 deletions

View File

@@ -68,13 +68,11 @@ async function JoinTeamAccountPage(props: JoinTeamAccountPageProps) {
const invitation = await api.getInvitation(adminClient, token);
// the invitation is not found or expired
if (!invitation) {
return (
<AuthLayoutShell Logo={AppLogo}>
<InviteNotFoundOrExpired />
</AuthLayoutShell>
);
}
// we need to verify the user isn't already in the account
// we do so by checking if the user can read the account