Skip to content

Commit

Permalink
remove (again) user id from redirect URL
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Oct 20, 2024
1 parent 02cd15b commit a0e8739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/radiator_web/controllers/api/raindrop_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defmodule RadiatorWeb.Api.RaindropController do

def auth_redirect(conn, %{"user_id" => user_id, "code" => code}) do
Logger.error(
"Raindrop auth redirect code: #{code}, redirect_uri: #{RaindropClient.redirect_uri(user_id)}"
"Raindrop auth redirect code: #{code}, redirect_uri: #{RaindropClient.redirect_uri()}"
)

{:ok, response} =
Expand All @@ -19,7 +19,7 @@ defmodule RadiatorWeb.Api.RaindropController do
client_secret: RaindropClient.config()[:client_secret],
grant_type: "authorization_code",
code: code,
redirect_uri: RaindropClient.redirect_uri(user_id)
redirect_uri: RaindropClient.redirect_uri()
}
]
|> Keyword.merge(RaindropClient.config()[:options])
Expand Down

0 comments on commit a0e8739

Please sign in to comment.