Skip to main content

Function: inviteContractor()

inviteContractor(_prev, formData): Promise<InviteState>

Defined in: src/server/actions/contractors.ts:29

Admin action: create an invited contractor and a single-use, hashed, expiring invite token. Returns the invite path to share (Gmail automation lands in a later step). Only the token hash is stored; the raw token exists only in the returned link.

Parameters​

_prev​

InviteState

formData​

FormData

Returns​

Promise<InviteState>