Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
For Yeoman-generated Office Add-ins, a login timeout during sideloading is addressed by signing in to Microsoft 365 from the command line first.
- Open a command prompt or terminal in the project root.
- Run:
atk auth login m365 - Complete the Microsoft 365 sign-in flow in the browser window that opens.
- After sign-in succeeds, run the sideload command again:
npm start
Additional checks supported by the setup guidance:
- Use HTTPS, not HTTP, for the local dev server. If prompted, install the development certificate provided by the Yeoman generator. Administrative privileges may be required.
- If prompted with "Allow localhost loopback for Microsoft Edge WebView?", enter
Y. This requires administrator privileges and is needed on first-time Office Add-in development setups. - On Mac, start the local web server first with:
then continue with the normal test flow.npm run dev-server
If the browser sign-in window does not appear and sideloading times out, the documented recovery step is to run atk auth login m365 and then retry sideloading.
References: