From 1de1d807768ab5e14ec0aafc08f69e329cb94c4f Mon Sep 17 00:00:00 2001 From: WangGuan Date: Fri, 3 Feb 2023 00:33:28 +0800 Subject: [PATCH] fix: fitbit PKCE param --- providers/fitbit/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/fitbit/session.go b/providers/fitbit/session.go index 6b3471a56..4a499d2dd 100644 --- a/providers/fitbit/session.go +++ b/providers/fitbit/session.go @@ -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 }