Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

In https://outlook.office365.com promise never gets executed #87

Open
binarykitchen opened this issue May 14, 2018 · 1 comment
Open

Comments

@binarykitchen
Copy link

I have following code for testing an add-in I'm developing locally and show it up on https://outlook.office365.com/

It seems the promise never gets executed for whatever weird reason. The console.log call never prints this text. Any clues why?

authenticator
    .authenticate(OfficeHelpers.DefaultEndpoints.Microsoft)
    .then(function (token) { console.log('this here never gets printed, why?') }
    .catch(OfficeHelpers.Utilities.log);
@binarykitchen
Copy link
Author

And yes, here the configs

authenticator.endpoints.registerMicrosoftAuth('bcf84a37-9abe-44ab-97db-90635563b938', {
    scope: 'Mail.ReadWrite'
});

Note there is no redirect URL since I expect it just to stay on the same page. And no error is thrown saying a redirect URL is missing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants