Packages

IntegrateDB is a database sharing system. It provides integration primitives and data ownership and migration controls. Use it to integrate applications directly through a Postgres database.

Current section

Files

Jump to
integratedb lib integrate_web views auth_view.ex
Raw

lib/integrate_web/views/auth_view.ex

defmodule IntegrateWeb.AuthView do
use IntegrateWeb, :view
def render("show.json", %{id: user_id, token: token, refresh_token: refresh_token}) do
%{
data: %{
id: user_id,
token: token,
refreshToken: refresh_token
}
}
end
end