Skip to content

Commit

Permalink
fix(markbates#435): fix scope value for strava
Browse files Browse the repository at this point in the history
  • Loading branch information
chrl committed Nov 24, 2022
1 parent b5cb5a6 commit 9a44ec2
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 9a44ec2

Please sign in to comment.