Skip to main content

Overview

Returns a function that accepts a pending incoming connection request. The current user must be authenticated and must be the recipient of the request.

Usage Example

Parameters

The hook returns a function. That function accepts:
string
required
The ID of the connection record to accept.

Returns

string
The connection record ID.
string
The updated status, e.g. "connected".
string | undefined
ISO timestamp when the request was accepted.