logo
search
Sign-in & Login Problems

Fix Microsoft 365 Sign-In Loop and App Login Issues

Adam DavisAdam Davis Sep 30, 2026 868 views

Question details

The user is unable to sign in to Microsoft 365 desktop applications and online services due to a persistent sign-in loop and JavaScript error prompts.

How to Fix Microsoft 365 Sign-In Loop and App Login Issues
Product
Microsoft 365
Device & OS
Windows
Scenario
Attempting to access and authenticate Microsoft 365 apps or web services on a desktop computer.
Observed behavior
The sign-in process loops repeatedly or displays an error stating JavaScript is required, even after clearing browser data, enabling JavaScript, and reinstalling Office.
Before you start

Verify that your Microsoft account credentials are correct by successfully signing in on a completely different device, such as your smartphone, to isolate the issue to your current PC.

Solution 1Recommended

Create a New Windows User Profile

A corrupted Windows user profile is a common cause of persistent Microsoft 365 sign-in loops that reinstalling Office cannot fix.

Sometimes the local Windows account data handling the authentication tokens becomes corrupted. Creating a fresh administrator account forces Windows to generate new, clean registry entries for the Microsoft sign-in interface.

1
Open Command Prompt as Administrator

Click the Start menu, type 'cmd', right-click on 'Command Prompt', and select 'Run as administrator'.

2
Create the New Account

Create a new user account with administrative privileges using Windows Settings (Accounts > Family & other users > Add someone else to this PC) or via command line prompts.

3
Switch Users

Log out of your current Windows session entirely, and then log in using the newly created Windows user profile.

4
Test Microsoft 365 Sign-In

Open Word or Excel in the new profile and attempt to sign in. If successful, your original Windows profile is corrupted and you will need to migrate your files to this new profile.

Create a New Windows User Profile
Profile Migration: Microsoft provides official guidance on transferring your Documents, Pictures, and Desktop files from a corrupted profile to a newly created one.
Free Microsoft Office alternative

Try WPS Office for a Hassle-Free Experience

If Microsoft 365 sign-in loops are preventing you from working, WPS Office is a highly compatible, lightweight, and free alternative that lets you edit your documents immediately without complex account authentication issues.

  1. 1. Download the Installer: Visit the official WPS Office website and download the free installation package.
  2. 2. Install the Software: Run the downloaded file and follow the simple on-screen instructions to set up the software on your PC.
  3. 3. Edit Your Files: Open WPS Office and double-click your existing Microsoft documents to resume your work instantly without any sign-in loops.
No mandatory sign-in required to open, edit, and save local documents.Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight application that installs quickly and bypasses complex Windows profile dependencies.Familiar tabbed user interface, ensuring a seamless migration from Microsoft Office.
QA img-9

Frequently Asked Questions

Why does Microsoft 365 say my browser doesn't support JavaScript during login?

This is often a false error caused by a corrupted browser cache, overly strict privacy settings blocking Microsoft's login scripts, or a corrupted Windows user profile interfering with the authentication pop-up window.

What should I do if creating a new Windows profile doesn't fix the sign-in loop?

If a new administrator profile does not resolve the issue, contact your Microsoft 365 IT administrator with your device details and exact error codes, or use the Microsoft Support and Recovery Assistant (SaRA) tool to perform a deep diagnostic scan.

Can I use my Microsoft 365 documents if I am stuck in a sign-in loop?

Microsoft 365 desktop apps restrict editing capabilities if you cannot verify your subscription via sign-in. However, you can open and edit your local .docx, .xlsx, and .pptx files using a free alternative like WPS Office while you troubleshoot the Microsoft issue.