Guardian v0.14.5 Guardian.Hooks behaviour
This module helps to hook into the lifecycle of authentication.
Summary
Callbacks
after_sign_in(conn, location)
after_sign_in(conn :: Plug.Conn.t, location :: atom | nil) :: Plug.Conn.t
before_encode_and_sign(resource, type, claims)
before_encode_and_sign(resource :: term, type :: atom, claims :: map) :: {:ok, {term, atom, map}} | {:error, any}
before_sign_out(conn, location)
before_sign_out(conn :: Plug.Conn.t, location :: atom | nil) :: Plug.Conn.t