Skip to content

Commit c9aff66

Browse files
committed
Merge branch 'Authentication' of https://github.com/microsoftgraph/msgraph-sdk-javascript into Authentication
2 parents 6c296a0 + 3a2fe1b commit c9aff66

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/TokenCredentialAuthenticationProvider.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const tokenCredential = new ClientSecretCredential("your_tenantId", "your_client
2323

2424
// Set your scopes and options for TokenCredential.getToken (Check the ` interface GetTokenOptions` in (TokenCredential Implementation)[https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/core/core-auth/src/tokenCredential.ts])
2525

26-
const options: TokenCredentialAuthenticationProviderOptions = { scopes: [scopes], getTokenOtions };
26+
const options: TokenCredentialAuthenticationProviderOptions = { scopes: [scopes], getTokenOptions };
2727

2828
// Create an instance of the TokenCredentialAuthenticationProvider by passing the tokenCredential instance and options to the constructor
2929
const authProvider = new TokenCredentialAuthenticationProvider(tokenCredential, options);
@@ -41,7 +41,7 @@ const { ClientSecretCredential } = require("@azure/identity");
4141
const { Client } = require("@microsoft/microsoft-graph-client");
4242
const { TokenCredentialAuthenticationProvider } = require("@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials");
4343

44-
// Create an instance of the TokenCredential Class that is imported
44+
// Create an instance of the TokenCredential class that is imported
4545
const credential = new ClientSecretCredential(tenantId, clientId, clientSecret);
4646

4747
// Set your scopes and options for TokenCredential.getToken (Check the ` interface GetTokenOptions` in (TokenCredential Implementation)[https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/core/core-auth/src/tokenCredential.ts])

samples/tokenCredentialSamples/ClientCredentialFlow/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
- [Register an application](https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app)
66

7-
- [Documention](https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-configure-app-access-web-apis#add-credentials-to-your-web-application).
7+
- [Documentation](https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-configure-app-access-web-apis#add-credentials-to-your-web-application).
88

99
2. Rename [secrets.sample.ts](./typescript/secrets.sample.ts) to secrets.ts or rename [secrets.sample.js](./javascript/secrets.sample.js) to secrets.js
1010

0 commit comments

Comments
 (0)