Hiyve Components - v1.0.0
    Preparing search index...

    Function useJoinToken

    • Hook for handling join token validation and room joining.

      Parameters

      • joinToken: string | null

        The join token from the invite link

      • roomRegion: string | null

        The region where the room is hosted

      • Optionaloptions: UseJoinTokenOptions

        Optional configuration for the hook

      Returns UseJoinTokenState & UseJoinTokenActions

      State and actions for token validation and room joining

      This hook manages the full lifecycle of joining a room via a join token:

      1. Validates the token and retrieves room information
      2. Handles password-protected rooms
      3. Joins the room with the validated token