how can i use the answer from this function? example, I want to use the value obtained in token and cookie, help
export type UseResponseParams = { token: string; cookie: string;};export async function showRec( request: UseRequestParams,): Promise<UseResponseParams> { const response = (await client.post(URL, request)) as { data: UseResponseParams; }; return response.data;}
tried data.token but it doesn't work