plug_mishka_auth v0.0.2 MishkaAuth.Helper.PhoenixConverter View Source

Link to this section Summary

Link to this section Types

Specs

conn() :: Plug.Conn.t()

Specs

error_msg() :: String.t()

Specs

msg() :: String.t()

Specs

redirect_url() :: String.t()

Specs

token() :: String.t()

Specs

user_id() :: Ecto.UUID.t()

Link to this section Functions

Link to this function

callback_redirect(conn, module, func, code)

View Source

Specs

callback_redirect(Plug.Conn.t(), atom() | tuple(), atom(), String.t()) ::
  Plug.Conn.t()
Link to this function

callback_redirect(conn, module, func, code, strategy, provider)

View Source

Specs

callback_redirect(
  Plug.Conn.t(),
  atom() | tuple(),
  atom(),
  String.t(),
  String.t() | atom(),
  String.t() | atom()
) :: Plug.Conn.t()
Link to this function

callback_session(conn, module, func, code, provider)

View Source

Specs

callback_session(Plug.Conn.t(), any(), any(), String.t(), String.t()) ::
  Plug.Conn.t()
Link to this function

changeset_redirect(conn, changeset)

View Source

Specs

changeset_redirect(Plug.Conn.t(), Ecto.Changeset.t()) :: Plug.Conn.t()

Specs

drop_session(Plug.Conn.t(), atom() | binary()) :: Plug.Conn.t()
Link to this function

get_session_with_key(conn, key)

View Source

Specs

get_session_with_key(Plug.Conn.t(), atom() | binary()) ::
  {:error, :get_session, atom() | binary()}
  | {:ok, :get_session, atom() | binary(), any()}
Link to this function

register_data(conn, params, temporary_id)

View Source

Specs

register_data(
  Plug.Conn.t(),
  :invalid
  | %{optional(:__struct__) => none(), optional(atom() | binary()) => any()},
  any()
) :: Plug.Conn.t()
Link to this function

render_json(conn, attrs, atom, status)

View Source

Specs

render_json(conn(), map(), :error | :ok, integer()) :: Plug.Conn.t()
Link to this function

session_redirect(conn, redirect_url, msg, type)

View Source

Specs

session_redirect(Plug.Conn.t(), any(), msg(), atom() | binary()) ::
  Plug.Conn.t()
Link to this function

store_session(session_name, value, redirect_url, conn, msg)

View Source

Specs

store_session(atom(), token() | user_id(), redirect_url(), conn(), error_msg()) ::
  conn()