()
| 39 | }; |
| 40 | |
| 41 | const isLoggedIn = async (): Promise<boolean> => { |
| 42 | const cookies = await browser.cookies.getAll({ |
| 43 | url: await getApiOriginUrl(), |
| 44 | name: "ory_kratos_session", |
| 45 | }); |
| 46 | return cookies.length > 0; |
| 47 | }; |
| 48 | |
| 49 | /** Build the cookie header for WebSocket requests (needs both CSRF and session). */ |
| 50 | const buildWebsocketCookieString = async () => { |
no test coverage detected