Skip to content

Commit 1999013

Browse files
committed
update clients
1 parent 1170347 commit 1999013

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/ota-api/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type OtaApiClient struct {
4949

5050
func NewClient(credentials *config.Credentials) *OtaApiClient {
5151
host := iot.GetArduinoAPIBaseURL()
52-
tokenSource := iot.NewUserTokenSource(credentials.Client, credentials.Secret, host)
52+
tokenSource := iot.NewUserTokenSource(credentials.Client, credentials.Secret, host, credentials.Organization)
5353
return &OtaApiClient{
5454
client: &http.Client{},
5555
src: tokenSource,

internal/storage-api/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func getArduinoAPIBaseURL() string {
5757
func NewClient(credentials *config.Credentials) *StorageApiClient {
5858
host := getArduinoAPIBaseURL()
5959
iothost := iot.GetArduinoAPIBaseURL()
60-
tokenSource := iot.NewUserTokenSource(credentials.Client, credentials.Secret, iothost)
60+
tokenSource := iot.NewUserTokenSource(credentials.Client, credentials.Secret, iothost, credentials.Organization)
6161
return &StorageApiClient{
6262
client: &http.Client{},
6363
src: tokenSource,

0 commit comments

Comments
 (0)