Skip to content

Reference to sample secrets file which doesn't exist  #516

@sjha2048

Description

@sjha2048

Bug Report

Prerequisites

  • Can you reproduce the problem?
  • Are you running the latest version?
  • Are you reporting to the correct repository?
  • Did you perform a cursory search?

Description

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.

Steps to Reproduce

Try running the sample without removing secrets import line

SDK Version - [SDK version you are using]

  • Node (Check, if using Node version of SDK)

Node Version - v16.10.0

Happy to update the documentation and secrets file.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions