akkoma/lib/pleroma/web/oauth/authenticator_adapter.ex
Ivan Tashkinov 1097ce6d9f Auth customization support.
OAuthController#create_authorization user retrieval / creation, errors handling, template & layout selection.
2019-02-21 18:55:19 +03:00

7 lines
202 B
Elixir

defmodule Pleroma.Web.AuthenticatorAdapter do
alias Pleroma.User
@callback get_user(Plug.Conn.t()) :: {:ok, User.t()} | {:error, any()}
@callback handle_error(Plug.Conn.t(), any()) :: any()
end