From d36eb955abe594f5df32847e3b5f6e7d947a9e2a Mon Sep 17 00:00:00 2001 From: Preston Baxter Date: Sat, 4 Nov 2023 14:01:37 -0500 Subject: [PATCH] B: Redirect URI --- ui/controllers/youtube.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/controllers/youtube.go b/ui/controllers/youtube.go index 8d73ad3..2b8d408 100644 --- a/ui/controllers/youtube.go +++ b/ui/controllers/youtube.go @@ -77,7 +77,7 @@ func ReceiveYoutubeOauth(c *gin.Context) { q.Add("code", code) q.Add("client_id", conf.YoutubeConfig.ClientId) 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") req, err := http.NewRequest("POST", token_url.String(), strings.NewReader(q.Encode()))