added missing parameter to the usage example templates (#537)

Example templates were missing the `user_id` param, this was caught by
@evantahler, thanks!
This commit is contained in:
Mateo Torres 2025-08-27 19:57:52 -03:00 committed by GitHub
parent 3c4c856842
commit e0ddc0ce90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,7 +97,10 @@ const USER_ID = "{{arcade_user_id}}";
const TOOL_NAME = "{tool_fully_qualified_name}";
// Start the authorization process
const authResponse = await client.tools.authorize({{tool_name: TOOL_NAME}});
const authResponse = await client.tools.authorize({{
tool_name: TOOL_NAME,
user_id: USER_ID
}});
if (authResponse.status !== "completed") {{
console.log(`Click this link to authorize: ${{authResponse.url}}`);
@ -125,7 +128,10 @@ client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable
USER_ID = "{{arcade_user_id}}"
TOOL_NAME = "{tool_fully_qualified_name}"
auth_response = client.tools.authorize(tool_name=TOOL_NAME)
auth_response = client.tools.authorize(
tool_name=TOOL_NAME,
user_id=TOOL_NAME
)
if auth_response.status != "completed":
print(f"Click this link to authorize: {{auth_response.url}}")