API
connectTownsWithBearerToken
Connect to Towns using a Bearer Token Towns clients can use this to connect to Towns Protocol on behalf of a user
Useful for server side code, allowing you to persist the signer context and use it to auth with Towns later
Imports
Definition
Source: connectTownsWithBearerToken
Parameters
token
- Type:
string
The bearer token to use
config
- Type:
Omit<SyncAgentConfig, "context">
The configuration for the sync agent
Return Type
The sync agent
Was this page helpful?