-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Expected behavior
After calling daily.preAuth I see that the useLocalSessionId hook correctly returns the session ID of the local user. I can then call daily.join() to the join the room with that session ID, and then call daily.leave() to leave the room with that session ID.
At this point the useLocalSessionId hook returns undefined, and I expect that calling preAuth again will issue a new local session ID that can be accessed by the useLocalSessionId hook.
Describe the bug (unexpected behavior)
In the above scenario, if I call preAuth again after leaving the room I see a participant-updated event fire with a new session ID for the local user but the return value of useLocalSessionId as well as useLocalParticipant remains undefined. I would expect those values to reflect the new local session ID, unless I am misunderstanding how this works?
Steps to reproduce
- Call
daily.preAuth()passing in url and token as options - Notice
participant-updatedevent fires with new session ID, which is correctly returned byuseLocalSessionIdanduseLocalParticipanthooks - Call
daily.join()to join room - Call
daily.leave()to leave room - Call
daily.preAuthagain, passing in same url and token options - Notice
participant-updatedevent fires with new session ID, howeveruseLocalSessionIdanduseLocalParticipanthooks returnsundefined
Additional context
Room I am testing in:
https://tastemade-staging.daily.co/zPmtkqdArvkU4a53DdzC