Guardian.Hooks behaviour
This module helps to hook into the lifecycle of authentication.
Callbacks
Specs:
- before_encode_and_sign(resource :: term, type :: atom, claims :: Map) :: term
Specs:
- after_encode_and_sign(resource :: term, type :: atom, claims :: Map, token :: String.t) :: term
Specs:
- after_sign_in(conn :: Plug.Conn.t, location :: atom | nil) :: term
Specs:
- before_sign_out(conn :: Plug.Conn.t, location :: atom | nil) :: term
Specs:
- on_verify(claims :: Map, jwt :: String.t) :: term
Specs:
- on_revoke(claims :: Map, jwt :: String.t) :: term