Skip to content
rw3iss Auth

InvitationAcceptCard

form @rw3iss/auth-client/preact/forms/InvitationAcceptCard framework-adapters/preact/components/forms/InvitationAcceptCard.tsx ↗

Single-invitation accept/decline card — useful for an /accept- invite/{id} route where the user landed from an email and you want a focused decision surface (vs. the multi-row <InvitationsList>).

On accept, optionally switchOrg to scope the active token to the newly-joined org (default true). The accepted/declined state is tracked locally so the card renders a final acknowledgment after the action.

Usage

import { InvitationAcceptCard } from '@rw3iss/auth-client/preact/forms';
<InvitationAcceptCard
invitation={/* InvitationRecord */}
/>

Props

NameTypeDescription
invitationInvitationRecord(required)
clientAuthClient
autoSwitchbooleanSwitch the active token to the new org on accept. Default true.
onDeclined() => voidNavigation hook called after accept (e.g. router.push(‘/dashboard’)).
classNamestring