Skip to content

Commit 76c7851

Browse files
committed
feat: code review updates
1 parent 296dda0 commit 76c7851

File tree

6 files changed

+266
-24
lines changed

6 files changed

+266
-24
lines changed

auth4genai/snippets/get-started/langchain-fastapi-py/call-others-api.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ OPENAI_API_KEY="YOUR_API_KEY"
5656
LANGGRAPH_API_URL=http://localhost:54367
5757
```
5858

59-
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to the **Settings** tab in the Auth0 Dashboard. You'll find these values in the **Basic Information** section at the top.
59+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your client application. You'll find these values in the **Basic Information** section at the top.
6060
Copy each value to the matching setting.
6161

6262
Next, run this command to generate a random 32 byte value and copy it to the `AUTH0_SECRET` field:
@@ -157,7 +157,7 @@ OPENAI_API_KEY="YOUR_API_KEY"
157157
LANGGRAPH_API_URL=http://localhost:54367
158158
```
159159

160-
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to the **Settings** tab in the Auth0 Dashboard. You'll find these values in the **Basic Information** section at the top.
160+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your client application. You'll find these values in the **Basic Information** section at the top.
161161
Copy each value to the matching setting.
162162

163163
Next, run this command to generate a random 32 byte value and copy it to the `AUTH0_SECRET` field.

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ OPENAI_API_KEY="YOUR_API_KEY"
4545
LANGGRAPH_API_URL=http://localhost:54367
4646
LANGCHAIN_CALLBACKS_BACKGROUND=false
4747
```
48-
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to the **Settings** tab in the Auth0 Dashboard. You'll find these values in the **Basic Information** section at the top.
48+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your Regular Web application. You'll find these values in the **Basic Information** section at the top.
49+
Copy each value to the matching setting.
50+
51+
To get your API's `AUTH0_AUDIENCE`, navigate to <strong>APIs > APIs </strong> in the Auth0 Dashboard and select your API. You'll find the identifier in the **General Settings** section at the top.
52+
53+
To get your Custom API Client's `AUTH0_CUSTOM_API_CLIENT_ID`, and `AUTH0_CUSTOM_API_CLIENT_SECRET` navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your Custom API Client application. You'll find these values in the **Basic Information** section at the top.
4954
Copy each value to the matching setting.
5055

5156
Next, run this command to generate a random 32 byte value and copy it to the `AUTH0_SECRET` field:
@@ -121,8 +126,12 @@ OPENAI_API_KEY="YOUR_API_KEY"
121126
LANGGRAPH_API_URL=http://localhost:54367
122127
LANGCHAIN_CALLBACKS_BACKGROUND=false
123128
```
129+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your Regular Web application. You'll find these values in the **Basic Information** section at the top.
130+
Copy each value to the matching setting.
124131

125-
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to the **Settings** tab in the Auth0 Dashboard. You'll find these values in the **Basic Information** section at the top.
132+
To get your API's `AUTH0_AUDIENCE`, navigate to <strong>APIs > APIs </strong> in the Auth0 Dashboard and select your API. You'll find the identifier in the **General Settings** section at the top.
133+
134+
To get your Custom API Client's `AUTH0_CUSTOM_API_CLIENT_ID`, and `AUTH0_CUSTOM_API_CLIENT_SECRET` navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your Custom API Client application. You'll find these values in the **Basic Information** section at the top.
126135
Copy each value to the matching setting.
127136

128137
Next, run this command to generate a random 32 byte value and copy it to the `AUTH0_SECRET` field:
@@ -131,6 +140,9 @@ openssl rand -hex 32
131140
```
132141

133142
Lastly, set your OpenAI API key or use any provider supported by the Vercel AI SDK:
143+
```bash .env.local wrap lines
144+
OPENAI_API_KEY="YOUR_API_KEY"
145+
```
134146

135147
### Set up Token Vault for Google social connection
136148

auth4genai/snippets/get-started/prerequisites/call-others-api.jsx

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,24 +93,13 @@ export const Prerequisites = ({
9393
<br />
9494
<ul>
9595
<li>
96-
Navigate to{" "}
97-
<strong>
98-
Applications &gt; APIs
99-
</strong>
96+
From the Settings page of the API that you just created, click the <strong>Add Application</strong> button in the right top corner. This will open a modal to create a new Custom API Client.
10097
</li>
10198
<li>
102-
Click the{" "}
103-
<strong>Create API</strong> button to create a new Custom API.
104-
</li>
105-
<li>
106-
Go to the Custom API you created and click the <strong>Add Application</strong> button in the right top corner.
107-
</li>
108-
<li>
109-
After that click the <strong>Configure Application</strong> button in the right top corner.
99+
Give your Custom API Client a name in the Application Name field and click the <strong>Add</strong> button to create a new Custom API Client.
110100
</li>
111101
<li>
112-
Note down the <code>client id</code> and <code>client secret</code>{" "}
113-
for your environment variables.
102+
After creation is successful, you should be redirected to the settings page for your newly created Custom API Client application. Note down the <code>client id</code> and <code>client secret</code>{" "}for your environment variables.
114103
</li>
115104
</ul>
116105
</Step>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ AUTH0_CLIENT_SECRET='<your-auth0-application-client-secret>'
3535
OPENAI_API_KEY="YOUR_API_KEY"
3636
```
3737

38-
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to the **Settings** tab in the Auth0 Dashboard. You'll find these values in the **Basic Information** section at the top.
38+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your client application. You'll find these values in the **Basic Information** section at the top.
3939
Copy each value to the matching setting.
4040

4141
Next, run this command to generate a random 32 byte value and copy it to the `AUTH0_SECRET` field:
@@ -98,7 +98,7 @@ AUTH0_CLIENT_SECRET='<your-auth0-application-client-secret>'
9898
# OpenAI API Key or any provider supported by the Vercel AI SDK
9999
OPENAI_API_KEY="YOUR_API_KEY"
100100
```
101-
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to the **Settings** tab in the Auth0 Dashboard. You'll find these values in the **Basic Information** section at the top.
101+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your client application. You'll find these values in the **Basic Information** section at the top.
102102
Copy each value to the matching setting.
103103

104104
Next, run this command to generate a random 32 byte value and copy it to the `AUTH0_SECRET` field:

auth4genai/snippets/get-started/vercel-ai-next-js/user-authentication.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { DownloadQuickstartButton } from "/snippets/download-quickstart/Download
88
<Tab
99
title="Use sample app (recommended)"
1010
>
11-
11+
1212
### Download sample app
1313
Start by downloading and extracting the sample app. Then open in your preferred IDE.
1414
<DownloadQuickstartButton
@@ -34,7 +34,7 @@ AUTH0_DOMAIN='<your-auth0-domain>'
3434
AUTH0_CLIENT_ID='<your-auth0-application-client-id>'
3535
AUTH0_CLIENT_SECRET='<your-auth0-application-client-secret>'
3636
```
37-
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to the **Settings** tab in the Auth0 Dashboard. You'll find these values in the **Basic Information** section at the top.
37+
To get your Auth0 application's `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID`, and `AUTH0_CLIENT_SECRET`, navigate to <strong>Applications > Applications </strong> in the Auth0 Dashboard and select your client application. You'll find these values in the **Basic Information** section at the top.
3838
Copy each value to the matching setting.
3939

4040
Next, run this command to generate a random 32 byte value and copy it to the `AUTH0_SECRET` field:
@@ -219,4 +219,4 @@ Sign up to your application to create a new user account. You will then see a we
219219
Want to see how it all comes together? Explore or clone the fully implemented sample application on [GitHub](https://github.com/auth0-samples/auth0-ai-samples/tree/main/authenticate-users/vercel-ai-next-js).
220220

221221
</Tab>
222-
</Tabs>
222+
</Tabs>

0 commit comments

Comments
 (0)