office-js-helpers
office-js-helpers copied to clipboard
Support for SharePoint.
The following code:
var authenticator = new OfficeHelpers.Authenticator();
authenticator.endpoints.registerMicrosoftAuth('...');
authenticator.authenticate(OfficeHelpers.DefaultEndpoints.Microsoft, true);
produces this error in SharePoint Online being called from an Embed:
error TypeError: Cannot read property 'displayDialogAsync' of undefined
Looks like it's not currently supported by SharePoint Online. If so, do you plan to support it soon?
No plans on this yet. If you wish you could send a PR. For the moment I am going to focus on stabilizing the latest release and post that I can look into this.
If you wish you could send a PR
But it's necessary to support it on the SharePoint side as well, isn't it?
Hey I've been trying to do something similar. You may find this interesting: https://yetanothersharepointblog.wordpress.com/2018/04/13/creating-and-outlook-add-in-using-an-spfx-webpart/