Overview
useDeclineWorkspaceInvite returns a callable that declines an invitation.
Authorization: self-service. The invite must be addressed to the signed-in user (identity-matched), and a verified email is required — the same gate as accept. Otherwise a squatter who signed up with someone else’s address could burn that person’s invite by declining it.
Usage Example
Parameters
Returns
Promise<void>: resolves with nothing once the invite is declined.
Error codes
Related
useFetchMyWorkspaceInvites— list the invites addressed to you- Decline Invite API

