preAuth(properties?)
Optionally called before join() to pre-authenticate with the server. This unlocks information that would otherwise only be available after join():
accessState()— whether the participant needs to wait in a lobbyroom()— room and domain configuration
preAuth() will load it. It also will give access to the local participant through the participant-updated and participants() method. It will not initialize the local media. To access local devices before joining, use startCamera().
url and token are locked in when preAuth() is called. Attempting to pass different values to join() will result in an error.Parameters
Takes the same properties asjoin(). At minimum, provide:
The Daily room URL.
Technically optional, but should be provided if a meeting token will be used for the call.
Return value
ReturnsPromise<{ access: DailyAccess }>. access is 'unknown' or { level: 'none' | 'lobby' | 'full' }.