Overview
useApproveMember returns a callable function for approving a pending join request. Sets the membership status from "pending" to "active". Requires the caller to be a moderator or admin.
Usage Example
Parameters
UUID of the user whose pending request to approve — their user id, not a membership id. Must be another member: your own id is refused (
400 space/own-member-id). Your own membership is useCheckMyMembership / useLeaveSpace.Returns
Resolves with the approved membership record (status: "active"), as a SpaceMember object: id, spaceId, userId, role, status, joinedAt and createdAt.
