Skip to content

Commit

Permalink
fix(#435): fix scope value for strava (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrl committed Sep 6, 2023
1 parent a7d4916 commit 6196507
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions providers/strava/strava.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"io/ioutil"
"net/http"
"net/url"
"strings"

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

if len(scopes) > 0 {
for _, scope := range scopes {
c.Scopes = append(c.Scopes, scope)
}
c.Scopes = []string{strings.Join(scopes, ",")}
} else {
c.Scopes = []string{"read"}
}
Expand Down

0 comments on commit 6196507

Please sign in to comment.