This commit is contained in:
Logan Hunt 2023-01-31 17:04:15 -07:00
parent 049bd83256
commit 58eb3df0f4
No known key found for this signature in database
GPG Key ID: 8AC6A4B840C0EC49

View File

@ -32,7 +32,7 @@ defmodule Chessh.Web.Endpoint do
case :httpc.request( case :httpc.request(
:post, :post,
{String.to_charlist(discord_login_url), [], 'application/x-www-form-urlencoded', {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 ) do