Rechat SDK
    Preparing search index...

    Sign-in & Saved Searches

    On brokerage portal sites, visitors can sign in, save a search, and revisit their saved searches. These features are portal-only: when the page loads, the SDK checks whether a portal is registered for the current domain. Until one is detected, the elements below stay disabled; on non-portal sites they never activate.

    Element Description
    <rechat-login-button> Opens the sign-in dialog
    <rechat-save-search-button> Saves the current search (prompts sign-in first if needed)
    <rechat-saved-searches-history-button> Opens the visitor's saved searches

    Place the buttons anywhere inside <rechat-listings> — each opens its own dialog:

    <rechat-root brand_id="YOUR_BRAND_ID">
    <rechat-listings>
    <rechat-login-button></rechat-login-button>
    <rechat-save-search-button></rechat-save-search-button>
    <rechat-saved-searches-history-button></rechat-saved-searches-history-button>
    <!-- … map, filter, grid … -->
    </rechat-listings>
    </rechat-root>

    Two DOM events fire on window:

    window.addEventListener('rechat-login:success', (e) => {
    console.log('Signed in via', e.detail.provider)
    })

    window.addEventListener('rechat-saved-search:created', (e) => {
    console.log('Saved search:', e.detail)
    })

    The same portal discovery powers the JavaScript SDK: sdk.Ready resolves when a portal is found for the current hostname (and rejects when none is). See the JavaScript SDK overview.