Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Feb 20, 2023
1 parent a0304d0 commit 1de61cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions www/versioned_docs/version-9.x/client/header.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ The headers option can be customized in config when using `withTRPC` in nextjs o
`headers` can be both an object or a function. If it's a function it will gets called dynamically every http request.

```ts title='_app.tsx'
import { AppType } from "next/dist/shared/lib/utils";
import { withTRPC } from "@trpc/next";
import type { AppRouter } from "@/server/routers/app";
import type { AppRouter } from '@/server/routers/app';
import { withTRPC } from '@trpc/next';
import { AppType } from 'next/dist/shared/lib/utils';

export let token: string;

Expand All @@ -35,7 +35,7 @@ export default withTRPC<AppRouter>({
],
};
},
})(MyApp)
})(MyApp);
```

### Example with auth login
Expand Down

0 comments on commit 1de61cb

Please sign in to comment.