Allow JS Client to work with authenticated spaces 🍪 (#8299)
* get cookie from /login and apply to fetch requests in connect + duplicate funcs
* add error msg
* add tests
* improve error msgs
* remove unused var
* add changeset
* remove comment
* add error msg
* add private space test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>