Skip to main content
zerotal

Documentation


Documentation / zerotal / testing / SessionDecoder

Type Alias: SessionDecoder

SessionDecoder = (response) => Promise<Record<string, unknown> | null>

Defined in: packages/testing/src/TestResponse.ts:27

Decodes the session carried by a response, using the application's own session driver. Returns null when the response sets no session cookie.

Parameters

response

Response

Returns

Promise<Record<string, unknown> | null>