Connect to Towns using a SignerContext Useful for server side code, allowing you to persist the signer context and use it to auth with Towns later

Imports

import { connectTowns } from '@towns-protocol/react-sdk'

Definition

function connectTowns(
  signerContext: SignerContext,
  config: Omit<SyncAgentConfig, "context">,
): Promise<SyncAgent>
Source: connectTowns

Parameters

signerContext

  • Type: SignerContext
The signer context to use

config

  • Type: Omit<SyncAgentConfig, "context">
The configuration for the sync agent

Return Type

The sync agent
Promise<SyncAgent>