Function I/O
| Name | In | Out | Side | Purpose |
|---|---|---|---|---|
| handleGenerate | MouseEvent | void | io | Calls POST /api/invites and renders the returned code. |
Variables
| Name | Type | Scope | Purpose |
|---|---|---|---|
| userId | string | call | Identifies the member who will own the new invite row. |
| code | string | instance | Last issued code shown to the member. |
Internal data flow
Errors
| Name | When | Means |
|---|---|---|
| ErrUnauthenticated | Session is missing on the client. | Redirect to sign-in. |
| ErrIssuanceFailed | API returns 500. | Show retry banner. |