InvitationAcceptCard
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
| Name | Type | Description |
|---|---|---|
invitation | InvitationRecord | (required) |
client | AuthClient | |
autoSwitch | boolean | Switch the active token to the new org on accept. Default true. |
onDeclined | () => void | Navigation hook called after accept (e.g. router.push(‘/dashboard’)). |
className | string |