> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # 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 **`host`** `string` — required Hostname or origin used for transport and REST calls. --- **`embedToken`** `string` — required Embed token issued by the host application's token endpoint. --- ## **Methods** #### [authenticate](/docs/browser-sdk/v4/reference/credential-providers/embed-token-credential-provider/authenticate) Obtains the initial credentials. Called once during client initialization. #### [refresh](/docs/browser-sdk/v4/reference/credential-providers/embed-token-credential-provider/refresh) Obtains fresh credentials before the current ones expire. Optional. > Credential provider that exchanges an embed token for a SAT via the host's token endpoint. ## Docs - [authenticate](https://signalwire.com/docs/browser-sdk/reference/credential-providers/embed-token-credential-provider/authenticate.md): Obtains the initial credentials. - [refresh](https://signalwire.com/docs/browser-sdk/reference/credential-providers/embed-token-credential-provider/refresh.md): Obtains fresh credentials before the current ones expire.