B: Redirect URI

This commit is contained in:
Preston Baxter 2023-11-04 14:01:37 -05:00
parent 4866071689
commit d36eb955ab
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ func ReceiveYoutubeOauth(c *gin.Context) {
q.Add("code", code) q.Add("code", code)
q.Add("client_id", conf.YoutubeConfig.ClientId) q.Add("client_id", conf.YoutubeConfig.ClientId)
q.Add("client_secret", conf.YoutubeConfig.ClientSecret) q.Add("client_secret", conf.YoutubeConfig.ClientSecret)
q.Add("redirect_uri", "https://capstone.preston-baxter.com:8080/dashboard") q.Add("redirect_uri", REDIRECT_URI)
q.Add("grant_type", "authorization_code") q.Add("grant_type", "authorization_code")
req, err := http.NewRequest("POST", token_url.String(), strings.NewReader(q.Encode())) req, err := http.NewRequest("POST", token_url.String(), strings.NewReader(q.Encode()))