handleRedirectPromise is returning null response #5885
Unanswered
satyamkatiyar
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We are using office js outlook native add-in and trying to authenticate azure ad using msal.
we are trying to authenticate azure ad using loginRedirect (since loginPopup is not support in outlook native app).
msalInstance
.handleRedirectPromise()
.then((response) => {
// Handle redirect response
console.log("**** Handle redirect response ****");
if (response !== null) {
console.log(response.account.homeAccountId);
// Display signed-in user content, call API, etc.
} else {
// In case multiple accounts exist, you can select
const currentAccounts = msalInstance.getAllAccounts();
}
})
.catch((error) => {
// Handle redirect error
console.log("**** Handle redirect error ****");
});
up redirect and entering email id - in outlook task pane we see below message - "Taking you to your organization's sign-in page"
And it opens up in browser window, where authentication is successful. however in outlook task pane it doesn't refresh.
PLEASE HELP.
Beta Was this translation helpful? Give feedback.
All reactions