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
Range: src/Range changed to src/tasks/FileUploadTask/Range.
ImplicitMSALAuthenticationProvider:
src/ImplicitMSALAuthenticationProvider changed to src/authentication/msal/ImplicitMSALAuthenticationProvider.
Alternatively, ImplicitMSALAuthenticationProvider can be imported or required from @microsoft/microsoft-graph-client/authProviders/msal.
MSALAuthenticationProviderOptions:
src/MSALAuthenticationProviderOptions changed to src/authentication/msal/MSALAuthenticationProviderOptions.
Alternatively, MSALAuthenticationProviderOptions can be imported or required from @microsoft/microsoft-graph-client/authProviders/msal.
Enhancements
Introducing support for @azure/identity TokenCredentials
Added a TokenCredentialAuthenticationProvider enabling the use of @azure/identitycredential classes for authentication purposes.
The TokenCredentialAuthenticationProvider enables server-side authentication using credential classes such as ClientSecretCredential or ClientCertificateCredential.
Added capabilities to track the upload progress using UploadEventHandlers.
Resolved a bug to enable large file uploads to Outlook and Print APIs.
Added browser field in package.json.
The browser field indicates the entry point for client applications using Microsoft Graph JS SDK library.
Added customHosts options
The AuthenticationHandler and TelemetryHandler will add or update the request headers only if the request URL is a Graph endpoint or a custom endpoint.
customHosts property in IOptions, IClientOptions takes in a Set of custom hosts.
// Consider the custom request url is https://CUSTOM_HOST.comconstcustomHost="CUSTOM_HOST";constcustomHosts=newSet<string>([customHost]);constclient=Client.initWithMiddleware({ middleware, customHosts });
Added GraphClientError
GraphClientError handles client-side errors encountered within the JavaScript Client SDK whereas, GraphError class should be used to handle errors in the response from the Graph API.
Deprecation
Deprecating ImplicitMSALAuthenticationProvider
Use of ImplicitMSALAuthenticationProvider, that is,using the implicit authorization flow is not recommended any more. OAuth 2.0 Implicit Grant.
Alternatives to ImplicitMSALAuthenticationProvider -
TokenCredentialAuthenticationProvider with the azure/identity library. Learn more about InteractiveBrowserCredential