Skip to main content

Function: getCurrentContractor()

getCurrentContractor(): Promise<CurrentContractor | null>

Defined in: src/server/auth/contractor.ts:18

Resolve the authenticated contractor from the request session, or null. Reads through the user-scoped (RLS) client, so a contractor only ever sees their own row. Used by /contractor pages and the proxy gate.

Returns

Promise<CurrentContractor | null>