Update missing references in samples (#34)

This commit is contained in:
Kamil Pajdzik 2018-11-13 11:08:20 -08:00 коммит произвёл GitHub
Родитель 5d8c9b13e3
Коммит cf0eff4cbf
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -7,7 +7,7 @@ All the authentication methods support callback as well as promise. IF they are
### username/password based login ### username/password based login
```typescript ```typescript
import * as msRestNodeAuth from "ms-rest-nodeauth"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
const username = process.env["AZURE_USERNAME"]; const username = process.env["AZURE_USERNAME"];
const password = process.env["AZURE_PASSWORD"]; const password = process.env["AZURE_PASSWORD"];
@ -21,7 +21,7 @@ msRestNodeAuth.loginWithUsernamePasswordWithAuthResponse(username, password).the
### service-principal/secret based login ### service-principal/secret based login
```typescript ```typescript
import * as msRestNodeAuth from "ms-rest-nodeauth"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
const clientId = process.env["CLIENT_ID"]; const clientId = process.env["CLIENT_ID"];
const secret = process.env["APPLICATION_SECRET"]; const secret = process.env["APPLICATION_SECRET"];
@ -36,7 +36,7 @@ msRestNodeAuth.loginWithServicePrincipalSecretWithAuthResponse(clientId, secret,
### interactive/device-code flow login ### interactive/device-code flow login
```typescript ```typescript
import * as msRestNodeAuth from "ms-rest-nodeauth"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
msRestNodeAuth.interactiveLoginWithAuthResponse().then((authres) => { msRestNodeAuth.interactiveLoginWithAuthResponse().then((authres) => {
console.dir(authres, { depth: null }) console.dir(authres, { depth: null })