The ID of the registered app to use for authorization.
The ID of the Azure AD tenant where the app has been registered.
The redirect URI value specified in the registered app’s configuration.
Provide any additional Graph permissions that may be required by your app.
Optional
authFlowParams: AuthFlowParamsOptionally modify the authorization process by providing additional parameters.
Optional
authWindowOptions: AuthWindowOptionsOptionally change the appearance and behavior of the authorization popup window by specifying additional options.
Generated using TypeDoc
Initiates the OAuth 2.0 authorization code flow and establishes a connection with a Microsoft 365 instance. Requires that an app has been registered with Azure AD.
Returns
A connection which can be used to execute requests against the Microsoft Graph API.
Throws
AuthorizationError if the authorization process does not complete successfully.
Throws
ParameterError if invalid function parameter values are detected.