oneauth.dll Error in Windows 10 and 11: Microsoft app sign-in library

A Microsoft app closes while signing in and the faulting module path identifies OneAuth.
The Windows file inventory identifies oneauth.dll as Microsoft OneAuth Authentication Library. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Record the app, account type, process path and exact sign-in step. Test the same account in the official web sign-in and a second Microsoft app.
Repair the affected feature
Update or repair the affected app through its publisher. For managed accounts, send the error and time to IT before resetting cached credentials.
If Windows reports corruption of a protected system file, use Microsoft’s system file repair procedure. Obtain software and drivers through Windows Update or the applicable publisher.
Verify the repair
Repeat the same sign-in from the original app and verify it can open the intended document or service.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.