v0.2.0
Jun 25, 2016
Authsense’s API has been significantly rewritten. It now uses Mix.Config
for configuration.
config :authsense,
Myapp.User,
repo: Myapp.Repo
Instead of Auth.*
, the functions are now in Authsense.Service
and Authsense.Plug
.
changeset
|> Authsense.Service.generate_hashed_password()
conn
|> Authsense.Plug.fetch_current_user()
The new Mix-based config now means the module-based configuration is now deprecated.
# <DEPRECATED>
defmodule Myapp.Auth do
use Authsense,
model: Myapp.User,
repo: Myapp.Repo
end
# </DEPRECATED>
Special thanks to @victorsolis for all the guidance that went into this release.
v0.1.0
Jun 23, 2016
- Initial release.