web-get-invite-ui UI

React page that lets a signed-in member request a new invite code.

Function I/O

NameInOutSidePurpose
handleGenerateMouseEventvoidioCalls POST /api/invites and renders the returned code.

Variables

NameTypeScopePurpose
userIdstringcallIdentifies the member who will own the new invite row.
codestringinstanceLast issued code shown to the member.

Internal data flow

1 Read userId from auth context. 2 POST /api/invites with userId. 3 Render returned code or surface error.

Errors

NameWhenMeans
ErrUnauthenticatedSession is missing on the client.Redirect to sign-in.
ErrIssuanceFailedAPI returns 500.Show retry banner.