-
Notifications
You must be signed in to change notification settings - Fork 41
Description
More of a question than an issue at this point, but I'm looking to see if there is any way during session establishment to do synchronous operations after a session is registered. Use case is as follows:
Browser loads a page which contains client-side JS. The client-side JS uses a fetch call to contact a server URL, which returns the sec-session-registration response header, along with some (unimportant) response body.
At this point the browser asynchronously registers a DBSC session using the start session endpoint, however the JS code that ran the original fetch operation doesn't know this, and doesn't have a way to "wait" until either:
- that asynchronous registration completes
- it can know that the browser either doesn't support DBSC or can't complete DBSC registration at the moment
My use case is that I would like to make additional fetch calls, following the one that kicked off the DBSC sec-session-response header, but only after the browser has had a chance to register a DBSC session if it is able.
How might this be achieved?