Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added missing exports to graph/presets/all #3157

Merged

Conversation

tavikukko
Copy link
Contributor

@tavikukko tavikukko commented Oct 26, 2024

Category

  • Bug fix?
  • New feature?
  • New sample?
  • Documentation update?

Related Issues

#3158

What's in this Pull Request?

Added missing exports

import { GraphBrowser, graphfi } from "@pnp/graph/presets/all"
import { MSAL, MSALOptions } from "@pnp/msaljsclient";

const options: MSALOptions = {
  configuration: {
    auth: {
      authority: "https://login.microsoftonline.com/common",
      clientId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    }
  },
  authParams: {
    forceRefresh: false,
  }
};

const graph = graphfi().using(GraphBrowser(), MSAL(options));

(async () => {
  const user = await graph.users();
  console.log(user)
})().catch(console.log)

@juliemturner
Copy link
Collaborator

Great thanks for fixing this.

@juliemturner juliemturner merged commit ac62455 into pnp:version-4 Oct 27, 2024
1 check passed
@tavikukko tavikukko deleted the graph-presets-all-added-missing-exports branch October 28, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants