Hello ,
I’m here to help you in resolving your issue
Clear Your Default Browser's Cache & Cookies :
Minecraft login uses your default browser for authentication.
- Open your Edge browser
- Clear cookies and cache (especially anything related to Microsoft or Minecraft).
- Restart your browser and try logging in again.
Log Out and Back Into Microsoft Account
- Go to https://account.microsoft.com and sign out completely.
- Close all browser tabs.
- Reopen and sign back in.
- Then try launching Minecraft again.
Try switching your default browser (temporarily) to another one (e.g., from Edge to Chrome) and log in through that.
Run Minecraft Launcher as Administrator
- Right-click the Minecraft Launcher.
- Click Run as administrator.
After trying above steps, please reach out to me if you have any doubts or issues