elixir alias __module__

defmodule User.Authentication do
  defstruct [:key, :token]
  alias __MODULE__, as: Auth
  .....
end

%Auth{key: "key", token: ".."}
patrick204nqh