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