Why?
This PR ensures TokenAcquisition services are registered only as singletons if the isTokenAcquisitionSingleton flag is true and removes any previously added scoped TokenAcquisition services when TokenAcquirerFactory is not used.
[ ] You've included unit or integration tests for your change, where applicable.
[ ] You've included inline docs for your change, where applicable.
[ ] There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.
Why? This PR ensures TokenAcquisition services are registered only as singletons if the
isTokenAcquisitionSingleton
flag is true and removes any previously added scoped TokenAcquisition services when TokenAcquirerFactory is not used.{PR title}
Summary of the changes (Less than 80 chars)
Description
{Detail}
Fixes #{bug number} (in this specific format)