refresh token

How do I implement automatic refresh in t3? I found this link: https://github.com/TanStack/query/discussions/2770 but using trpc there's no where to specify "await refreshAuthToken()". Can't do it in "retry" either because it cannot be made async. Any help is greatly appreciated!
GitHub
async retry · Discussion #2770 · TanStack/query
HI, in my old project I was making an Axios interceptor and queuing all failed requests then fetch and refresh my refreshToken then retry all the failed requests. with React Query I don't n...
1 Reply
shikishikichangchang
I need to send a refresh request from my client. It cannot be sent via the server.
Want results from more Discord servers?
Add your server