For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
GuidesReferenceClick-to-Call
GuidesReferenceClick-to-Call
  • Core
    • Overview
  • Entities
    • SignalWire
    • Address
    • Participant
    • ClientPreferences
    • SelfCapabilities
    • SelfParticipant
    • User
    • WebRTCCall
      • EmbedTokenCredentialProvider
        • authenticate
        • refresh
      • StaticCredentialProvider
  • Web Components
    • Overview
    • sw-audio-level
    • sw-call-controls
    • sw-call-dialpad
    • sw-call-media
    • sw-call-provider
    • sw-call-status
    • sw-call-widget
    • sw-click-to-call
    • sw-device-selector
    • sw-directory
    • sw-local-camera
    • sw-participant-controls
    • sw-participants
    • sw-self-media
    • sw-ui-alert
    • sw-ui-background
    • sw-ui-call-layout
    • sw-ui-content-drawer
    • sw-ui-control-bar
    • sw-ui-dialpad
    • sw-ui-dropup
    • sw-ui-icon
    • sw-ui-modal
    • sw-ui-responsive-container
    • sw-ui-split-button
    • sw-ui-transcript-view
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Implements
  • Constructors
  • Constructor
  • Parameters
  • Methods
EntitiesCredentialProviders

EmbedTokenCredentialProvider

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

authenticate

Next
Built with

Credential provider that exchanges an embed token for a SAT via the host’s token endpoint.

Implements

  • CredentialProvider

Constructors

Constructor

1new EmbedTokenCredentialProvider(host, embedToken): EmbedTokenCredentialProvider

Parameters

host
stringRequired

Hostname or origin used for transport and REST calls.

embedToken
stringRequired

Embed token issued by the host application’s token endpoint.

Methods

authenticate

Obtains the initial credentials. Called once during client initialization.

refresh

Obtains fresh credentials before the current ones expire. Optional.