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 {