Include user payload in runtime app info response

This commit is contained in:
Jonatan Kłosko 2024-03-31 00:29:12 +07:00
parent 47b3fef73d
commit 4ac8468c45
3 changed files with 4 additions and 2 deletions

View file

@ -3010,7 +3010,7 @@ defmodule Livebook.Session do
{type, _module, _key} = Livebook.Config.identity_provider() {type, _module, _key} = Livebook.Config.identity_provider()
user user
|> Map.take([:id, :name, :email]) |> Map.take([:id, :name, :email, :payload])
|> Map.put(:source, type) |> Map.put(:source, type)
end end

View file

@ -16,6 +16,7 @@ defmodule Livebook.Users.User do
id: id(), id: id(),
name: String.t() | nil, name: String.t() | nil,
email: String.t() | nil, email: String.t() | nil,
payload: map() | nil,
hex_color: hex_color() hex_color: hex_color()
} }

View file

@ -1493,7 +1493,8 @@ defmodule Livebook.SessionTest do
source: :session, source: :session,
id: "1234", id: "1234",
name: "Jake Peralta", name: "Jake Peralta",
email: "jperalta@example.com" email: "jperalta@example.com",
payload: nil
} }
}} }}