Skip to content

Commit 6196507

Browse files
authored
fix(#435): fix scope value for strava (#484)
1 parent a7d4916 commit 6196507

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

providers/strava/strava.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"io/ioutil"
1111
"net/http"
1212
"net/url"
13+
"strings"
1314

1415
"github.com/markbates/goth"
1516
"golang.org/x/oauth2"
@@ -157,9 +158,7 @@ func newConfig(provider *Provider, scopes []string) *oauth2.Config {
157158
}
158159

159160
if len(scopes) > 0 {
160-
for _, scope := range scopes {
161-
c.Scopes = append(c.Scopes, scope)
162-
}
161+
c.Scopes = []string{strings.Join(scopes, ",")}
163162
} else {
164163
c.Scopes = []string{"read"}
165164
}

0 commit comments

Comments
 (0)