Skip to content

Commit

Permalink
Merge pull request #497 from ev1lQuark/fix-PKCE
Browse files Browse the repository at this point in the history
fix: fitbit PKCE param
  • Loading branch information
techknowlogick committed Feb 26, 2023
2 parents ed046bd + 1de1d80 commit aeec8c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/fitbit/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (s Session) GetAuthURL() (string, error) {
// token to be stored for future use.
func (s *Session) Authorize(provider goth.Provider, params goth.Params) (string, error) {
p := provider.(*Provider)
token, err := p.config.Exchange(oauth2.NoContext, params.Get("code"))
token, err := p.config.Exchange(oauth2.NoContext, params.Get("code"), oauth2.SetAuthURLParam("code_verifier", params.Get("code_verifier")))
if err != nil {
return "", err
}
Expand Down

0 comments on commit aeec8c8

Please sign in to comment.