Skip to main content
Reference for the <char-agent> custom element.

Attributes

Properties

Imperative auth API

connect(options)

  • Requires publishableKey
  • Accepts optional idToken
  • Returns boolean

setAuth(options | null)

  • Wrapper for connect() / disconnect()
  • Pass null to clear auth

disconnect()

  • Clears auth in the embed runtime
  • Returns boolean

Method option types

Only publishableKey (required) and idToken (optional) are supported in auth methods.

Events