Packages
Client library that reads secrets and other configuration from 1Password Connect Servers
Retired package: Release invalid - broken util function
Current section
Files
Jump to
Current section
Files
lib/connect/util.ex
defmodule OnePassword.Connect.Util do
alias OnePassword.Connect.Vault
def get_password(%Vault{items: items}, item_name) do
Enum.find(items, %{}, fn item -> item.title == item_name end)
|> Map.get(:fields, [])
|> Enum.find("", fn field -> field.type == "password" end)
end
end