Skip to content

Commit a0a654c

Browse files
priley86lrzhou25pmalouin
authored
Apply suggestions from code review
Co-authored-by: lrzhou25 <[email protected]> Co-authored-by: Patrick Malouin <[email protected]>
1 parent eadd0c2 commit a0a654c

24 files changed

+39
-39
lines changed

auth4genai/intro/call-others-apis-on-users-behalf.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Call Other's APIs on User's Behalf
3-
description: "[Token Vault](/intro/token-vault) lets your AI agent call external APIs on the user's behalf. We provide SDKs for Python, JavaScript, and popular AI frameworks like LangChain, LlamaIndex, Genkit, and Vercel AI, making it easy and straightforward to get access tokens for your third-party connections."
3+
description: "[Token Vault](/intro/token-vault) lets your AI agent call external APIs on the user's behalf. We provide SDKs for Python, JavaScript, and popular AI frameworks like LangChain, LlamaIndex, Genkit, and Vercel AI, making it easy and straightforward to get access tokens for external applications."
44
---
55

66
## Web applications with backend for frontend

auth4genai/intro/token-vault.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ The process of using Token Vault involves the following key steps:
4848

4949
1. **User authentication and consent:** The [user links](/intro/account-linking) and authenticates with an external Identity Provider (e.g., Google) and grants your application permission to access their data by approving the requested OAuth scopes.
5050
2. **Secure token storage:** Auth0 receives access and refresh tokens from the external provider and stores them securely within Token Vault.
51-
3. **Token exchange:** Your application can then exchange a valid Auth0 refresh token for a third-party access token from Token Vault. This allows your application to obtain the necessary credentials to call the third-party API without the user having to re-authenticate. It also means your application does not need to store or manage any credentials.
52-
4. **API call:** With the third-party access token, your AI agent can make authorized calls to the third-party API on the user's behalf.
51+
3. **Token exchange:** Your application can then exchange a valid Auth0 refresh token for an external provider's access token from Token Vault. This allows your application to obtain the necessary credentials to call external APIs without the user having to re-authenticate. It also means your application does not need to store or manage any credentials.
52+
4. **API call:** With the external provider's access token, your AI agent can make authorized calls to the external API on the user's behalf.
5353

5454
## Supported integrations
5555

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ async def list_upcoming_events_fn():
256256
google_access_token = get_access_token_from_token_vault()
257257
if not google_access_token:
258258
raise ValueError(
259-
"Authorization required to access the Token Vault connection API"
259+
"Authorization required to access the Google Calendar API"
260260
)
261261

262262
calendar_service = build(

auth4genai/snippets/how-tos/github/cloudflare-agents.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ The name of the user is ${claims?.name ?? "unknown"}.
180180

181181
#### Client Side
182182

183-
On this example we utilize the `TokenVaultConsentPopup` component to show a popup that allows the user to authenticate with Github and grant access with the requested scopes. You'll first need to install the `@auth0/ai-components` package:
183+
In this example, we utilize the `TokenVaultConsentPopup` component to show a pop-up that allows the user to authenticate with GitHub and grant access with the requested scopes. You'll first need to install the `@auth0/ai-components` package:
184184

185185
```bash wrap lines
186186
npx @auth0/ai-components add TokenVault

auth4genai/snippets/how-tos/github/genkit.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export async function GET(
174174

175175
#### Client Side
176176

177-
On this example we utilize the `TokenVaultConsentPopup` component to show a popup that allows the user to authenticate with Google Calendar and grant access with the requested scopes. You'll first need to install the `@auth0/ai-components` package:
177+
In this example, we utilize the `TokenVaultConsentPopup` component to show a pop-up that allows the user to authenticate with Google Calendar and grant access with the requested scopes. You'll first need to install the `@auth0/ai-components` package:
178178

179179
```bash wrap lines
180180
npx @auth0/ai-components add TokenVault

auth4genai/snippets/how-tos/github/langgraph-python.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ You can check different authentication options for Next.js with Auth0 at the [of
167167

168168
#### Client Side
169169

170-
On this example we utilize the `TokenVaultConsentPopup` component to show a popup that allows the user to authenticate with GitHub and grant access with the requested scopes. You'll first need to install the `@auth0/ai-components` package:
170+
In this example, we utilize the `TokenVaultConsentPopup` component to show a pop-up that allows the user to authenticate with GitHub and grant access with the requested scopes. You'll first need to install the `@auth0/ai-components` package:
171171

172172
```bash wrap lines
173173
npx @auth0/ai-components add TokenVault

auth4genai/snippets/how-tos/github/langgraph.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ export { auth as authHandler };
297297

298298
#### Client Side
299299

300-
On this example we utilize the `TokenVaultConsentPopup` component to show a popup that allows the user to authenticate with GitHub and grant access with the requested scopes. You'll first need to install the `@auth0/ai-components` package:
300+
In this example, we utilize the `TokenVaultConsentPopup` component to show a pop-up that allows the user to authenticate with GitHub and grant access with the requested scopes. You'll first need to install the `@auth0/ai-components` package:
301301

302302
```bash wrap lines
303303
npx @auth0/ai-components add TokenVault

auth4genai/snippets/how-tos/github/llamaindex.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export async function POST(request: Request) {
132132

133133
#### Client Side
134134

135-
On this example we utilize the `TokenVaultConsentPopup` component to show a popup that allows the user to authenticate with GitHub and grant access with the requested scopes. You'll first need to install the `@auth0/ai-components` package:
135+
In this example, we utilize the `TokenVaultConsentPopup` component to show a pop-up that allows the user to authenticate with GitHub and grant access with the requested scopes. You'll first need to install the `@auth0/ai-components` package:
136136

137137
```bash wrap lines
138138
npx @auth0/ai-components add TokenVault

auth4genai/snippets/how-tos/google-calendar/ai-sdk.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export async function POST(request: Request) {
142142

143143
#### Client Side
144144

145-
On this example we utilize the `TokenVaultConsentPopup` component to show a popup that allows the user to authenticate with Google Calendar and grant access with the requested scopes. You'll first need to install the `@auth0/ai-components` package:
145+
In this example, we utilize the `TokenVaultConsentPopup` component to show a pop-up that allows the user to authenticate with Google Calendar and grant access with the requested scopes. You'll first need to install the `@auth0/ai-components` package:
146146

147147
```bash wrap lines
148148
npx @auth0/ai-components add TokenVault

auth4genai/snippets/how-tos/google-calendar/cloudflare-agents.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ The name of the user is ${claims?.name ?? "unknown"}.
193193

194194
#### Client Side
195195

196-
On this example we utilize the `TokenVaultConsentPopup` component to show a popup that allows the user to authenticate with Google Calendar and grant access with the requested scopes. You'll first need to install the `@auth0/ai-components` package:
196+
In this example, we utilize the `TokenVaultConsentPopup` component to show a pop-up that allows the user to authenticate with Google Calendar and grant access with the requested scopes. You'll first need to install the `@auth0/ai-components` package:
197197

198198
```bash wrap lines
199199
npx @auth0/ai-components add TokenVault

0 commit comments

Comments
 (0)