Token Renewal Expiration due to time out using adal.js in Office Add in RRS feed

  • Question

  • Dear Team,

    We are working on creating Office Add in for Word, Excel and PowerPoints. We have our Business Web API's hosted on Azure and we are able to generate token using adal.js and consume this azure web api's when we hit f5 in visual studio.

    But when we publish this office add-in code to another azure web service and then 

    open any document in the Office 365 SharePoint site, and load this add in by uploading its manifest file, I get token renewal operation failed due to timeout error.

           var authContext = new AuthenticationContext(config);

            var isCallback = authContext.isCallback(window.location.hash);

            if (isCallback && !authContext.getLoginError()) {
                window.location = authContext._getItem(authContext.CONSTANTS.STORAGE.LOGIN_REQUEST);

            // Check Login Status, Update UI
            var user = authContext.getCachedUser();


    But instead if i open a new word from my desktop and upload the same manifest file for the add in, it works fine. 

    I'm having the issue for the documents in Office 365 SharePoint.

    Please help me to resolve this issue.

    Thursday, January 25, 2018 1:10 PM