defmodule MyApp_7191136.AuthController do
  use MyApp_7191136.Web, :controller

  def index(conn, _params) do
    redirect conn, external: "https://www.fitbit.com/oauth2/authorize"
  end
end

defmodule MyApp_7191136.AuthController do
  use MyApp_7191136.Web, :controller

  def index(conn, _params) do
    redirect conn, external: Fitbit.authorize_url!(scope: "settings sleep")
  end
end

Remove hard-coded url and ask the strategy for the authorize url
Remove hard-coded url and ask the strategy for the authorize url

wsmoak/my_app_7191136