Skip to content

Commit 142c62a

Browse files
Tim RufflesDanny McCormick
authored andcommitted
Make example safe rather than warn in comment (#296)
1 parent 8ba9826 commit 142c62a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ import * as azdev from "azure-devops-node-api";
3333
// your collection url
3434
let orgUrl = "https://dev.azure.com/yourorgname";
3535

36-
// ideally from config
37-
let token: string = "cbdeb34vzyuk5l4gxc4qfczn3lko3avfkfqyb47etahq6axpcqha";
36+
let token: string = process.env.AZURE_PERSONAL_ACCESS_TOKEN; // e.g "cbdeb34vzyuk5l4gxc4qfczn3lko3avfkfqyb47etahq6axpcqha";
3837

3938
let authHandler = azdev.getPersonalAccessTokenHandler(token);
4039
let connection = new azdev.WebApi(orgUrl, authHandler);

0 commit comments

Comments
 (0)