Skip to content

Commit dc9336c

Browse files
make sure we add offline_access when creating sessions (microsoft#159116)
1 parent ce88761 commit dc9336c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extensions/microsoft-authentication/src/AADHelper.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ export class AzureActiveDirectoryService {
259259
if (!scopes.includes('profile')) {
260260
scopes.push('profile');
261261
}
262+
if (!scopes.includes('offline_access')) {
263+
scopes.push('offline_access');
264+
}
262265
scopes = scopes.sort();
263266
const scopeData: IScopeData = {
264267
scopes,

0 commit comments

Comments
 (0)