fix(auth): send redirect_uri when require access token

This commit is contained in:
kekskurse 2024-11-30 02:11:08 +01:00
parent eb7b9dcf40
commit 68ca0a7371

View file

@ -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 {