Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/mgt-sharepoint-provider

Package Overview
Dependencies
Maintainers
0
Versions
828
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/mgt-sharepoint-provider

The Microsoft Graph Toolkit SharePoint Provider

  • 4.2.2-preview.463687d
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Microsoft Graph Toolkit SharePoint Provider

npm

The Microsoft Graph Toolkit (mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.

The @microsoft/mgt-sharepoint-provider package exposes the SharePointProvider class to be used inside your SharePoint web parts to power the components with Microsoft Graph access.

See docs for full documentation of the SharePointProvider

Usage

  1. Install the packages

    npm install @microsoft/mgt-element @microsoft/mgt-sharepoint-provider
    
  2. Initialize the provider in code

    import {Providers} from '@microsoft/mgt-element';
    import {SharePointProvider} from '@microsoft/mgt-sharepoint-provider';
    
    // add the onInit() method if not already there in your web part class
    protected async onInit() {
        Providers.globalProvider = new SharePointProvider(this.context);
    }
    

See provider usage documentation to learn about how to use the providers with the mgt components, to sign in/sign out, get access tokens, call Microsoft Graph, and more.

Sea also

Keywords

FAQs

Package last updated on 01 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc