We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d5f63d commit 8d76e2cCopy full SHA for 8d76e2c
1 file changed
tests/unit/kratos-session-edge.test.ts
@@ -41,7 +41,7 @@ describe('isKratosSessionActive', () => {
41
it('calls whoami with the request cookie and returns true for an active session', async () => {
42
const fetchMock = vi.fn().mockResolvedValue({
43
ok: true,
44
- json: async () => ({ active: true }),
+ json: async () => ({ active: true, identity: { external_id: 'ext-1' } }),
45
})
46
vi.stubGlobal('fetch', fetchMock)
47
0 commit comments