summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLogan Hunt <logan.hunt@usu.edu>2023-01-31 17:04:15 -0700
committerLogan Hunt <logan.hunt@usu.edu>2023-01-31 17:04:15 -0700
commit58eb3df0f4c74d84cc96ec8b5c748b7d1add4727 (patch)
tree02d2d1c7d06ab7a3cc6c241f7d7bd8ff343932c2
parent049bd83256086bad46ac853d97faffdac505f9eb (diff)
downloadchessh-58eb3df0f4c74d84cc96ec8b5c748b7d1add4727.tar.gz
chessh-58eb3df0f4c74d84cc96ec8b5c748b7d1add4727.zip
Whoops
-rw-r--r--lib/chessh/web/web.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chessh/web/web.ex b/lib/chessh/web/web.ex
index 7b2f696..aac57fc 100644
--- a/lib/chessh/web/web.ex
+++ b/lib/chessh/web/web.ex
@@ -32,7 +32,7 @@ defmodule Chessh.Web.Endpoint do
case :httpc.request(
:post,
{String.to_charlist(discord_login_url), [], 'application/x-www-form-urlencoded',
- 'scope=#{discord_scope}&client_id=#{client_id}&client_secret=#{client_secret}&code=#{req_token}&grant_type=authorization_code&redirect_uri=http://127.0.0.1:3000/api/oauth/redirect'},
+ 'scope=#{discord_scope}&client_id=#{client_id}&client_secret=#{client_secret}&code=#{req_token}&grant_type=authorization_code&redirect_uri=#{redirect_uri}'},
[],
[]
) do