calling tRPC procedure from custom link
what is the best way to call a procedure from a custom link? I see in https://github.com/pyncz/trpc-refresh-token-link they are using a helper client. I tried the proxy client approach with
await utils.client.auth.refresh.mutate(tokens), but getting Error: Unable to find tRPC Context. Did you forget to wrap your App inside withTRPC HoC?.GitHub
Refresh token link for tRPC client. Contribute to pyncz/trpc-refresh-token-link development by creating an account on GitHub.