diff --git a/docs/how-tos/control-motor.md b/docs/how-tos/control-motor.md index c9d6eb3c9a..c83514d904 100644 --- a/docs/how-tos/control-motor.md +++ b/docs/how-tos/control-motor.md @@ -491,14 +491,14 @@ const main = async () => { const machine = await VIAM.createRobotClient({ host, - credential: { - type: "api-key", - // Replace "" (including brackets) with your machine's API key - payload: "", + credentials: { + type: 'api-key' + /* Replace "" (including brackets) with your machine's api key */, + payload: '', + authEntity: '' + /* Replace "" (including brackets) with your machine's api key id */, }, - // Replace "" (including brackets) with your machine's API key ID - authEntity: "", - signalingAddress: "https://app.viam.com:443", + signalingAddress: 'https://app.viam.com:443', }); button().onclick = async () => { diff --git a/docs/how-tos/drive-rover.md b/docs/how-tos/drive-rover.md index ebb19995fc..4d8d8ae8ab 100644 --- a/docs/how-tos/drive-rover.md +++ b/docs/how-tos/drive-rover.md @@ -520,14 +520,14 @@ async function main() { const machine = await VIAM.createRobotClient({ host, - credential: { - type: "api-key", - // Replace "" (including brackets) with your machine's API key - payload: "", + credentials: { + type: 'api-key' + /* Replace "" (including brackets) with your machine's api key */, + payload: '', + authEntity: '' + /* Replace "" (including brackets) with your machine's api key id */, }, - // Replace "" (including brackets) with your machine's API key ID - authEntity: "", - signalingAddress: "https://app.viam.com:443", + signalingAddress: 'https://app.viam.com:443', }); button().onclick = async () => { @@ -1017,14 +1017,14 @@ const main = async () => { const machine = await VIAM.createRobotClient({ host, - credential: { - type: "api-key", - // Replace "" (including brackets) with your machine's API key - payload: "", + credentials: { + type: 'api-key' + /* Replace "" (including brackets) with your machine's api key */, + payload: '', + authEntity: '' + /* Replace "" (including brackets) with your machine's api key id */, }, - // Replace "" (including brackets) with your machine's API key ID - authEntity: "", - signalingAddress: "https://app.viam.com:443", + signalingAddress: 'https://app.viam.com:443', }); button().onclick = async () => { diff --git a/docs/sdks/_index.md b/docs/sdks/_index.md index 2208e1f3d7..d108884428 100644 --- a/docs/sdks/_index.md +++ b/docs/sdks/_index.md @@ -212,14 +212,14 @@ async function main() { const robot = await VIAM.createRobotClient({ host, - credential: { - type: "api-key", - // Replace "" (including brackets) with your machine's API key - payload: "", + credentials: { + type: 'api-key' + /* Replace "" (including brackets) with your machine's api key */, + payload: '', + authEntity: '' + /* Replace "" (including brackets) with your machine's api key id */, }, - // Replace "" (including brackets) with your API key ID - authEntity: "", - signalingAddress: "https://app.viam.com:443", + signalingAddress: 'https://app.viam.com:443', }); console.log("Resources:"); diff --git a/docs/tutorials/control/air-quality-fleet.md b/docs/tutorials/control/air-quality-fleet.md index 0773918566..10abab46a4 100644 --- a/docs/tutorials/control/air-quality-fleet.md +++ b/docs/tutorials/control/air-quality-fleet.md @@ -438,14 +438,13 @@ The following instructions describe how to set up an API key for one location. async function main() { const opts: VIAM.ViamClientOptions = { - credential: { - type: "api-key", - // Key with location operator permissions - // Replace (including angle brackets) - payload: "", - // Replace (including angle brackets) - authEntity: "", - }, + credentials: { + type: 'api-key' + /* Replace "" (including brackets) with your machine's api key */, + payload: '', + authEntity: '' + /* Replace "" (including brackets) with your machine's api key id */, + } }; const orgID: string = ""; // Replace diff --git a/static/include/program/authenticate.md b/static/include/program/authenticate.md index 9f8f672840..bfbe988385 100644 --- a/static/include/program/authenticate.md +++ b/static/include/program/authenticate.md @@ -50,14 +50,14 @@ const host = "ADDRESS FROM THE VIAM APP"; const robot = await VIAM.createRobotClient({ host, - credential: { - type: "api-key", - // Replace "" (including brackets) with your machine's API key - payload: "", + credentials: { + type: 'api-key' + /* Replace "" (including brackets) with your machine's api key */, + payload: '', + authEntity: '' + /* Replace "" (including brackets) with your machine's api key id */, }, - // Replace "" (including brackets) with your machine's API key ID - authEntity: "", - signalingAddress: "https://app.viam.com:443", + signalingAddress: 'https://app.viam.com:443', }); ```