You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In /msgraph-sdk-javascript/blob/dev/samples/javascript/clientInitialization/tokenCredentialAuthenticationProvider/index.js on L#11
some secrets are imported const { clientId, clientSecret, scopes, tenantId } = require("./secrets");
I looked up in the repo and secrets.js doesn't exist but, secrets are defined in index.js only
It's a little bit confusing and gives an error when the user tries to run the file, also documentation is also a little bit ambiguous about defining the secrets.
Bug Report
Prerequisites
Description
In
/msgraph-sdk-javascript/blob/dev/samples/javascript/clientInitialization/tokenCredentialAuthenticationProvider/index.js
on L#11some secrets are imported
const { clientId, clientSecret, scopes, tenantId } = require("./secrets");
I looked up in the repo and secrets.js doesn't exist but, secrets are defined in
index.js
onlyIt's a little bit confusing and gives an error when the user tries to run the file, also documentation is also a little bit ambiguous about defining the secrets.
Steps to Reproduce
Try running the sample without removing secrets import line
SDK Version - [SDK version you are using]
Happy to update the documentation and secrets file.
The text was updated successfully, but these errors were encountered: