diff --git a/extensions/microsoft-authentication/src/AADHelper.ts b/extensions/microsoft-authentication/src/AADHelper.ts index f32f33bdc96..288157ba00d 100644 --- a/extensions/microsoft-authentication/src/AADHelper.ts +++ b/extensions/microsoft-authentication/src/AADHelper.ts @@ -259,6 +259,9 @@ export class AzureActiveDirectoryService { if (!scopes.includes('profile')) { scopes.push('profile'); } + if (!scopes.includes('offline_access')) { + scopes.push('offline_access'); + } scopes = scopes.sort(); const scopeData: IScopeData = { scopes,