Pick ClientKeyAuth ({ type: 'key', clientKey }) for anything that runs in a browser: it
is the only variant limited to one agent and to the domains you allowed. BasicAuth is an
API key with access to the whole account, for a server. BearerToken is a D-ID user access
token. Whichever you pass is used for every request the SDK makes: the REST calls, the video
stream and the notifications web socket.
The credentials createAgentManager accepts, as options.auth.
Pick ClientKeyAuth (
{ type: 'key', clientKey }) for anything that runs in a browser: it is the only variant limited to one agent and to the domains you allowed. BasicAuth is an API key with access to the whole account, for a server. BearerToken is a D-ID user access token. Whichever you pass is used for every request the SDK makes: the REST calls, the video stream and the notifications web socket.