Skip to main content

acceptWorkspaceInvite(workspaceId: string, signature: string): Promise<void>

Allows an AeonClient instance to accept an invitation to join a specific Aeon workspace. This operation requires cryptographic authorization in the form of a signature. The signature must be generated beforehand by calling AeonSigner.signAcceptWorkspaceMessage(workspaceId) with the same workspaceId.

Parameters

  • workspaceId: string - The unique identifier of the workspace for which the invitation is being accepted.
  • signature: string - The hexadecimal string representation of the signature obtained by calling AeonSigner.signAcceptWorkspaceMessage(workspaceId).

Returns

  • Promise<void>: A promise that resolves when the invitation has been successfully processed and the client is recognized as a member of the workspace. It rejects if there’s an error, such as an invalid workspaceId, an expired invitation, or network issues.

Example