> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# EmbedTokenCredentialProvider

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

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

## **Implements**

* [`CredentialProvider`](/docs/browser-sdk/v4/reference/interfaces/credential-provider)

## **Constructors**

### Constructor

```ts
new EmbedTokenCredentialProvider(host, embedToken): EmbedTokenCredentialProvider
```

### Parameters

Hostname or origin used for transport and REST calls.

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

## **Methods**

Obtains the initial credentials. Called once during client initialization.

Obtains fresh credentials before the current ones expire. Optional.