You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hotmail account validation consistently fails with AADSTS90023 because Chrome extension service workers include an Origin: chrome-extension://... header that Microsoft's token endpoint rejects unless the origin is registered as an allowed SPA/Native origin in Azure AD.
Changes
background.js — Restore missing functions
buildLocalhostCleanupPrefix and closeTabsByUrlPrefix were called in handleStepData (step 9) but never defined, causing a runtime ReferenceError. Restored from an earlier PR:
Adds redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient to the refresh-token request — the standard native-client redirect URI for public clients, which satisfies the requirement for apps registered as "Mobile and desktop applications"
Detects AADSTS90023 in the error response and replaces the cryptic Microsoft trace with a clear, actionable message explaining the required Azure AD app registration change
Test fixes
step8-stop-cleanup.test.js: added getState and isAutoRunScheduledState mocks; requestStop calls getState() which was absent from the evaluation context
step9-localhost-cleanup-scope.test.js: added the two restored functions to the extracted bundle so handleStepData can resolve them at evaluation time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hotmail account validation consistently fails with
AADSTS90023because Chrome extension service workers include anOrigin: chrome-extension://...header that Microsoft's token endpoint rejects unless the origin is registered as an allowed SPA/Native origin in Azure AD.Changes
background.js— Restore missing functionsbuildLocalhostCleanupPrefixandcloseTabsByUrlPrefixwere called inhandleStepData(step 9) but never defined, causing a runtimeReferenceError. Restored from an earlier PR:background.js— Hotmail token refresh:redirect_uri+ better error messageredirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclientto the refresh-token request — the standard native-client redirect URI for public clients, which satisfies the requirement for apps registered as "Mobile and desktop applications"AADSTS90023in the error response and replaces the cryptic Microsoft trace with a clear, actionable message explaining the required Azure AD app registration changeTest fixes
step8-stop-cleanup.test.js: addedgetStateandisAutoRunScheduledStatemocks;requestStopcallsgetState()which was absent from the evaluation contextstep9-localhost-cleanup-scope.test.js: added the two restored functions to the extracted bundle sohandleStepDatacan resolve them at evaluation time