Spear.enable_user
You're seeing just the function
enable_user
, go back to Spear module for more information.
Specs
enable_user(Spear.Connection.t(), String.t(), Keyword.t()) :: :ok | {:error, any()}
Enables a user to make requests against the EventStoreDB
Disabling and enabling users are an alternative to repeatedly creating and deleting users and is suitable for when a user needs to be temporarily denied access.
Options
All options are passed to Spear.request/5
.
Examples
iex> Spear.disable_user(conn, "aladdin")
:ok
iex> Spear.enable_user(conn, "aladdin")
:ok