Fix more stuff

This commit is contained in:
Pancakes 2024-07-27 20:43:29 -04:00
parent 2ee09afac2
commit 855760ed01
No known key found for this signature in database
GPG Key ID: 5792877BFA27DC8F
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ func HandleDiscordCallback(w http.ResponseWriter, r *http.Request) (string, erro
} }
func RetrieveDiscordId(code string) (string, error) { func RetrieveDiscordId(code string) (string, error) {
var v url.Values v := make(url.Values)
v.Set("client_id", DiscordClientID) v.Set("client_id", DiscordClientID)
v.Set("client_secret", DiscordClientSecret) v.Set("client_secret", DiscordClientSecret)
v.Set("grant_type", "authorization_code") v.Set("grant_type", "authorization_code")

View File

@ -51,7 +51,7 @@ func HandleGoogleCallback(w http.ResponseWriter, r *http.Request) (string, error
} }
func RetrieveGoogleId(code string) (string, error) { func RetrieveGoogleId(code string) (string, error) {
var v url.Values v := make(url.Values)
v.Set("client_id", GoogleClientID) v.Set("client_id", GoogleClientID)
v.Set("client_secret", GoogleClientSecret) v.Set("client_secret", GoogleClientSecret)
v.Set("code", code) v.Set("code", code)