From 68ca0a7371cfd3557c426522679fdd02113dfc56 Mon Sep 17 00:00:00 2001 From: kekskurse Date: Sat, 30 Nov 2024 02:11:08 +0100 Subject: [PATCH] fix(auth): send redirect_uri when require access token --- auth.go | 1 + 1 file changed, 1 insertion(+) diff --git a/auth.go b/auth.go index efce47e..edc6639 100644 --- a/auth.go +++ b/auth.go @@ -140,6 +140,7 @@ func (a Auth) GetTokenFromCode(code string) (Token, error) { form := url.Values{} form.Add("grant_type", "authorization_code") form.Add("code", code) + form.Add("redirect_uri", a.clientConfig.RedirectURL) req, err := http.NewRequest("POST", a.authConfig.TokenEndpoint, strings.NewReader(form.Encode())) if err != nil {