Documentation / @zerotal/testing / index / SessionDecoder
Type Alias: SessionDecoder
SessionDecoder = (
response) =>Promise<Record<string,unknown> |null>
Defined in: 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>