Removes feature flag from passing masterKey to SDK (#843)

* Remove Feature flag from master key usage

* Adds flag to fallback

* format
This commit is contained in:
Zachary Foster
2021-05-28 08:12:33 -04:00
committed by GitHub
parent 5417e1e120
commit 69b8196cf0
2 changed files with 6 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ export function client(): Cosmos.CosmosClient {
if (_client) return _client;
const options: Cosmos.CosmosClientOptions = {
endpoint: endpoint() || "https://cosmos.azure.com", // CosmosClient gets upset if we pass a bad URL. This should never actually get called
...(!userContext.features.enableAadDataPlane && { key: userContext.masterKey }),
key: userContext.masterKey,
tokenProvider,
connectionPolicy: {
enableEndpointDiscovery: false,