Pick ClientKeyAuth ({ type: 'key', clientKey }) for anything that runs in a browser: it
is the only variant scoped to one agent and to the domains you allowed. BearerToken and
BasicAuth carry account-wide credentials and belong in a trusted environment. 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 scoped to one agent and to the domains you allowed. BearerToken and BasicAuth carry account-wide credentials and belong in a trusted environment. Whichever you pass is used for every request the SDK makes — the REST calls, the video stream and the notifications web socket.