Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@sjha2048

Description

@sjha2048
Issue body actions

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.

Reactions are currently unavailable

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.