Skip to content

Commit 2bcbb39

Browse files
remove unnecessary graph scopes
1 parent 69ccd05 commit 2bcbb39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export class Auth implements TokenCredential, AuthenticationProvider {
144144
};
145145

146146
getAccessToken = async (authenticationProviderOptions?: AuthenticationProviderOptions): Promise<string> => {
147-
const graphScopes = ['User.Read', 'User.ReadBasic.All', 'Directory.Read.All', 'People.Read']; // An array of graph scopes
147+
const graphScopes = ['User.Read']; // An array of graph scopes
148148

149149
if (authenticationProviderOptions?.scopes) graphScopes.concat(authenticationProviderOptions.scopes);
150150

0 commit comments

Comments
 (0)