diff --git a/README.md b/README.md index a7f03fe3c9..df553aa62d 100644 --- a/README.md +++ b/README.md @@ -31,15 +31,17 @@ For an example of how to get an authentication provider, see [choose a Microsoft ```Golang import ( - azidentity "https://github.com/Azure/azure-sdk-for-go/sdk/azidentity" - a "https://github.com/microsoft/kiota/authentication/go/azure" + azidentity "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + a "github.com/microsoft/kiota/authentication/go/azure" + "context" ) cred, err := azidentity.NewDeviceCodeCredential(&azidentity.DeviceCodeCredentialOptions{ TenantID: "", ClientID: "", - UserPrompt: func(message azidentity.DeviceCodeMessage) { + UserPrompt: func(ctx context.Context, message azidentity.DeviceCodeMessage) error { fmt.Println(message.Message) + return nil }, }) @@ -59,7 +61,7 @@ if err != nil { You must get a **GraphRequestAdapter** object to make requests against the service. ```Golang -import msgraphsdk "https://github.com/microsoftgraph/msgraph-sdk-go" +import msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go" adapter, err := msgraphsdk.NewGraphRequestAdapter(auth) if err != nil {