I have made a POC of my app with the vanilla javascript template created using the yo office command.
The authentication works with displayDialogAsync:
Office.initialize = function () {
if (OfficeHelpers.Authenticator.isAuthDialog()) return;
};
This works fine on outlook.com and outlook desktop as well.
However, when I try the same process using the react template, on outlook desktop the popup doesn't even open. On oultook.com, it does open to the correct page, but then doesn't close, and I'm unable to retrieve the code.
I basically copy pasted my code between the two apps. In react this is the full thing:
Nevermind. I had forgotten about the <AppDomains> in my manifest. And outlook desktop wants the subdomain as well, not just the domain like outlook.com.
I have made a POC of my app with the vanilla javascript template created using the
yo office
command. The authentication works with displayDialogAsync:Of course I have also this code on the same page
This works fine on outlook.com and outlook desktop as well.
However, when I try the same process using the react template, on outlook desktop the popup doesn't even open. On oultook.com, it does open to the correct page, but then doesn't close, and I'm unable to retrieve the
code
.I basically copy pasted my code between the two apps. In react this is the full thing:
I'm out of ideas...