Packages
Potionx project generator. Provides a `mix potionx.new` task to bootstrap a new Elixir application with Phoenix, Absinthe, Pow and Vue dependencies.
Current section
Files
Jump to
Current section
Files
templates/potionx/app_name_web/controllers/authorization_controller.ex
defmodule <%= @web_namespace %>.AuthorizationController do
use <%= @web_namespace %>, :controller
use Potionx.AuthorizationController, [endpoint: <%= @web_namespace %>.Endpoint]
defp redirect_uri(conn) do
"#{<%= @web_namespace %>.Endpoint.url()}/api/v1/auth/#{conn.params["provider"]}/callback"
end
end