api.store.checkout.mutate({ lang, person_name: { first: data.firstName, last: data.lastName }, ...}, { context: { getCaptcha: true }})
export const api = createTRPCProxyClient<AppRouter>({ links: [ httpBatchLink({ url: config.endpoint, headers: (bruh) => { if (bruh.opList.some(item => item.context['getCaptcha'])) { return { 'x-captcha': // do check here and return the token } } return {} } }) ],});
headers()
opList