Skip to content

Commit 68981a2

Browse files
committed
update README.md to match changes to GraphServiceClient
1 parent 1ebf574 commit 68981a2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@ For an example of authentication in a client application, see the [MSGraph SDK A
3838
After you have set the correct application ID and URL, you must get a **GraphServiceClient** object to make requests against the service. The SDK stores the account information for you, but when a user signs in for the first time, it invokes the UI to get the user's account information.
3939

4040
```java
41-
IClientConfig clientConfig =
42-
DefaultClientConfig.createWithAuthenticationProvider(mAuthenticationProvider);
43-
4441
IGraphServiceClient graphClient =
45-
GraphServiceClient.builder()
46-
.fromConfig(mClientConfig)
42+
GraphServiceClient
43+
.builder()
44+
.authenticationProvider(authenticationProvider)
4745
.buildClient();
4846
```
4947

0 commit comments

Comments
 (0)