We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ccfa4 commit c7345a7Copy full SHA for c7345a7
1 file changed
auth.ts
@@ -62,7 +62,7 @@ export function createTrpcClient(debug: boolean, deployUrl: string) {
62
errorLink,
63
retryLink({
64
retry({ error: err }) {
65
- const code = err?.data?.code ?? err?.cause?.data?.code;
+ const code = err?.data?.code ?? (err?.cause as any)?.data?.code;
66
if (!(code === "NOT_AUTHENTICATED" || code === "TOKEN_EXPIRED")) {
67
}
68
0 commit comments