Skip to content

Commit 2c00e6e

Browse files
fix: added small fixes
1 parent 5e52dbf commit 2c00e6e

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

auth4genai/snippets/get-started/langchain-next-js/async-auth.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const getAccessToken = async () => {
116116
};
117117
```
118118

119-
Update the `/src/app/api/chat/[..._path]/route.ts` file with the following code. AccessToken will be passed to your LangGraph agent so we can use it from the Auth0 AI SDK to get the current user.
119+
Update the `/src/app/api/chat/[..._path]/route.ts` file with the following code. The access token will be passed to your LangGraph agent so we can use it from the Auth0 AI SDK to get the current user.
120120

121121
```ts src/app/api/chat/[..._path]/route.ts wrap lines highlight={3,9-13}
122122
import { initApiPassthrough } from "langgraph-nextjs-api-passthrough";
@@ -137,9 +137,9 @@ export const { GET, POST, PUT, PATCH, DELETE, OPTIONS, runtime } =
137137
138138
### Add Custom Authentication
139139
<Info>
140-
For more information on how to add custom authentication for your LangGraph Platform application, see the [Custom Auth](https://langchain-ai.github.io/langgraphjs/how-tos/auth/custom_auth/) guide.
140+
For more information on how to add custom authentication for your LangGraph Platform application, read the [Custom Auth](https://langchain-ai.github.io/langgraphjs/how-tos/auth/custom_auth/) guide.
141141
</Info>
142-
In your langgraph.json, add the path to your auth file:
142+
In your `langgraph.json`, add the path to your auth file:
143143
```typescript langgraph.json wrap lines highlight={8}
144144
{
145145
"node_version": "20",

auth4genai/snippets/get-started/langchain-next-js/auth-for-rag.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ export const getUser = async () => {
182182

183183
### Add Custom Authentication
184184
<Info>
185-
For more information on how to add custom authentication for your LangGraph Platform application, see the [Custom Auth](https://langchain-ai.github.io/langgraphjs/how-tos/auth/custom_auth/) guide.
185+
For more information on how to add custom authentication for your LangGraph Platform application, read the [Custom Auth](https://langchain-ai.github.io/langgraphjs/how-tos/auth/custom_auth/) guide.
186186
</Info>
187-
In your langgraph.json, add the path to your auth file:
187+
In your `langgraph.json`, add the path to your auth file:
188188
```typescript langgraph.json wrap lines highlight={8}
189189
{
190190
"node_version": "20",
@@ -197,7 +197,7 @@ In your langgraph.json, add the path to your auth file:
197197
}
198198
}
199199
```
200-
Then, in your auth.ts file, add your auth logic:
200+
Then, in your `auth.ts` file, add your auth logic:
201201
```typescript src/lib/auth.ts wrap lines
202202
import { createRemoteJWKSet, jwtVerify } from "jose";
203203

auth4genai/snippets/get-started/langchain-next-js/call-others-api.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ export const { GET, POST, PUT, PATCH, DELETE, OPTIONS, runtime } =
211211
212212
### Add Custom Authentication
213213
<Info>
214-
For more information on how to add custom authentication for your LangGraph Platform application, see the [Custom Auth](https://langchain-ai.github.io/langgraphjs/how-tos/auth/custom_auth/) guide.
214+
For more information on how to add custom authentication for your LangGraph Platform application, read the [Custom Auth](https://langchain-ai.github.io/langgraphjs/how-tos/auth/custom_auth/) guide.
215215
</Info>
216-
In your langgraph.json, add the path to your auth file:
216+
In your `langgraph.json`, add the path to your auth file:
217217
```typescript langgraph.json wrap lines highlight={8}
218218
{
219219
"node_version": "20",
@@ -226,7 +226,7 @@ In your langgraph.json, add the path to your auth file:
226226
}
227227
}
228228
```
229-
Then, in your auth.ts file, add your auth logic:
229+
Then, in your `auth.ts` file, add your auth logic:
230230
```typescript src/lib/auth.ts wrap lines
231231
import { createRemoteJWKSet, jwtVerify } from "jose";
232232

auth4genai/snippets/get-started/langchain-next-js/call-your-api.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ export const { GET, POST, PUT, PATCH, DELETE, OPTIONS, runtime } =
7676
7777
### Add Custom Authentication
7878
<Info>
79-
For more information on how to add custom authentication for your LangGraph Platform application, see the [Custom Auth](https://langchain-ai.github.io/langgraphjs/how-tos/auth/custom_auth/) guide.
79+
For more information on how to add custom authentication for your LangGraph Platform application, read the [Custom Auth](https://langchain-ai.github.io/langgraphjs/how-tos/auth/custom_auth/) guide.
8080
</Info>
81-
In your langgraph.json, add the path to your auth file:
81+
In your `langgraph.json`, add the path to your auth file:
8282
```typescript langgraph.json wrap lines highlight={8}
8383
{
8484
"node_version": "20",
@@ -91,7 +91,7 @@ In your langgraph.json, add the path to your auth file:
9191
}
9292
}
9393
```
94-
Then, in your auth.ts file, add your auth logic:
94+
Then, in your `auth.ts` file, add your auth logic:
9595
```typescript src/lib/auth.ts wrap lines
9696
import { createRemoteJWKSet, jwtVerify } from "jose";
9797

0 commit comments

Comments
 (0)