Skip to content

Commit

Permalink
es/v2: Port /node/interceptors (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
srikrsna-buf authored Oct 29, 2024
1 parent 284d8c5 commit ca61437
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/node/interceptors.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ But what if we need the user info in one of our RPC implementations? One way is

```ts
import { ConnectRouter } from "@connectrpc/connect";
import { ElizaService } from "./gen/eliza_connect";
import { ElizaService } from "./gen/eliza_pb";
import { authenticate } from "authenticate.js";

export default (router: ConnectRouter) =>
Expand Down Expand Up @@ -191,7 +191,7 @@ And then in our handler we can use it:

```ts
import { ConnectRouter } from "@connectrpc/connect";
import { ElizaService } from "./gen/eliza_connect";
import { ElizaService } from "./gen/eliza_pb";
import { authenticate } from "authenticate.js";
import { kUser } from "user-context.js";

Expand Down

0 comments on commit ca61437

Please sign in to comment.