From 37e95c6db3066c98bcc9f9e8214524504b14b394 Mon Sep 17 00:00:00 2001 From: Mateo Torres Date: Sun, 8 Mar 2026 18:29:34 -0300 Subject: [PATCH 1/3] fix markdown in FAQ for python snippets --- app/en/resources/faq/page.mdx | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/app/en/resources/faq/page.mdx b/app/en/resources/faq/page.mdx index c831a9deb..71156b811 100644 --- a/app/en/resources/faq/page.mdx +++ b/app/en/resources/faq/page.mdx @@ -53,6 +53,7 @@ Tools](/references/auth-providers/google, you can use this code to authenticate + ```python from arcadepy import Arcade @@ -60,29 +61,26 @@ client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable USER_ID = "{arcade_user_id}" # get the list of tools - tools = client.tools.list(toolkit="Gmail") # collect the scopes - scopes = set() for tool in tools: -if tool.requirements.authorization.oauth2.scopes: -scopes |= set(tool.requirements.authorization.oauth2.scopes) + if tool.requirements.authorization.oauth2.scopes: + scopes |= set(tool.requirements.authorization.oauth2.scopes) # start auth - auth_response = client.auth.start(user_id=USER_ID, scopes=list(scopes), provider="google") # show the url to the user if needed - if auth_response.status != "complete": -print(f"Please click here to authorize: {auth_response.url}") # Wait for the authorization to complete -client.auth.wait_for_completion(auth_response) + print(f"Please click here to authorize: {auth_response.url}") # Wait for the authorization to complete + client.auth.wait_for_completion(auth_response) +``` -```` + ```js import Arcade from "@arcadeai/arcadejs"; @@ -107,7 +105,7 @@ if (auth_response.status !== "completed") { // Wait for the authorization to complete auth_response = await client.auth.waitForCompletion(auth_response); } -```` +``` @@ -122,6 +120,7 @@ The tool will work with the broader permissions while still satisfying its minim + ```python from arcadepy import Arcade @@ -129,12 +128,12 @@ client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable user_id = "{arcade_user_id}" auth_response = client.auth.start( -user_id=user_id, -provider="google", -scopes=[ -"https://www.googleapis.com/auth/drive.file", -"https://www.googleapis.com/auth/drive" -] + user_id=user_id, + provider="google", + scopes=[ + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive" + ] ) ```` From cef936c1e151a33930e3324236eb444543de9b69 Mon Sep 17 00:00:00 2001 From: Mateo Torres Date: Sun, 8 Mar 2026 18:31:01 -0300 Subject: [PATCH 2/3] fix markdown in FAQ for python snippets --- app/en/resources/faq/page.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/en/resources/faq/page.mdx b/app/en/resources/faq/page.mdx index 71156b811..31ac70a19 100644 --- a/app/en/resources/faq/page.mdx +++ b/app/en/resources/faq/page.mdx @@ -67,7 +67,7 @@ tools = client.tools.list(toolkit="Gmail") scopes = set() for tool in tools: if tool.requirements.authorization.oauth2.scopes: - scopes |= set(tool.requirements.authorization.oauth2.scopes) + scopes |= set(tool.requirements.authorization.oauth2.scopes) # start auth auth_response = client.auth.start(user_id=USER_ID, scopes=list(scopes), provider="google") From 4f4c71bc38b510962257989860d958b569ff067e Mon Sep 17 00:00:00 2001 From: Mateo Torres Date: Sun, 8 Mar 2026 18:35:36 -0300 Subject: [PATCH 3/3] fixed inconsistent backticks --- app/en/resources/faq/page.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/en/resources/faq/page.mdx b/app/en/resources/faq/page.mdx index 31ac70a19..b00f027bd 100644 --- a/app/en/resources/faq/page.mdx +++ b/app/en/resources/faq/page.mdx @@ -136,9 +136,11 @@ auth_response = client.auth.start( ] ) -```` +``` + + ```javascript import Arcade from "@arcadeai/arcadejs"; @@ -148,7 +150,7 @@ const user_id = "{arcade_user_id}"; const authResponse = await client.auth.start(user_id, "google", { scopes: ["https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive"] }); -```` +```