TODO: Add description
If available in Hex, the package can be installed
by adding pow_session_toolkit
to your list of dependencies in mix.exs
:
def deps do
[
{:pow_session_toolkit, "~> 0.1.6"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/pow_session_toolkit.
Configure pow itself as usual, for example:
config :my_otp_app, :pow,
user: MyApp.DB.User,
repo: MyApp.Repo,
users_context: MyApp.DB.Users,
cache_store_backend: Pow.Store.Backend.MnesiaCache
Add a key to the standard pow config called :pow_session_toolkit
and add the configuration values as specified in session_plugs.ex there:
config :my_otp_app, :pow,
user: MyApp.DB.User,
repo: MyApp.Repo,
users_context: MyApp.DB.Users,
cache_store_backend: Pow.Store.Backend.MnesiaCache,
pow_session_toolkit: [
access_token_ttl: 3600
]