need to check whether app.DisplayName is truthy because the registry key may return invalid data (like DISPLAYNAME)
logoutAzure is async function so it should be await. Besides, it's OK for hitting error, because if the first login attempt fails, the logout will hit exception.
Do these changes impact command syntax of any of the packages? (e.g., add/remove command, add/remove a command parameter, or update required parameters)
No.
Change Description:
Fix minor issue in the configure.ts.
need to check whether app.DisplayName is truthy because the registry key may return invalid data (like DISPLAYNAME)
logoutAzure is async function so it should be await. Besides, it's OK for hitting error, because if the first login attempt fails, the logout will hit exception.
Do these changes impact command syntax of any of the packages? (e.g., add/remove command, add/remove a command parameter, or update required parameters) No.
Do these changes impact documentation? (e.g., a tutorial on https://learn.microsoft.com/office/dev/add-ins/overview/office-add-ins) No.
Validation/testing performed:
The fix is tested in local machine with the
yo office
command.