We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef766b9 + 1c57ed9 commit a95520aCopy full SHA for a95520a
src/Common/Commands.Common.Authentication/Factories/AuthenticationFactory.cs
@@ -163,7 +163,7 @@ public SubscriptionCloudCredentials GetSubscriptionCloudCredentials(IAzureContex
163
context.Account.Id,
164
context.Environment.Name,
165
tenant);
166
- if (context.TokenCache != null)
+ if (context.TokenCache != null && context.TokenCache.CacheData != null && context.TokenCache.CacheData.Length > 0)
167
{
168
tokenCache = context.TokenCache;
169
}
0 commit comments