Skip to content

Commit 1de1d80

Browse files
committed
fix: fitbit PKCE param
1 parent 5dc244d commit 1de1d80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/fitbit/session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func (s Session) GetAuthURL() (string, error) {
3131
// token to be stored for future use.
3232
func (s *Session) Authorize(provider goth.Provider, params goth.Params) (string, error) {
3333
p := provider.(*Provider)
34-
token, err := p.config.Exchange(oauth2.NoContext, params.Get("code"))
34+
token, err := p.config.Exchange(oauth2.NoContext, params.Get("code"), oauth2.SetAuthURLParam("code_verifier", params.Get("code_verifier")))
3535
if err != nil {
3636
return "", err
3737
}

0 commit comments

Comments
 (0)