Guardian.Hooks behaviour

This module helps to hook into the lifecycle of authentication.

Callbacks

after_mint/4

Specs:

  • after_mint(resource :: term, type :: atom, claims :: Map, token :: String.t) :: term
after_sign_in/2

Specs:

  • after_sign_in(conn :: Plug.Conn.t, location :: atom | nil) :: term
before_mint/3

Specs:

  • before_mint(resource :: term, type :: atom, claims :: Map) :: term
before_sign_out/2

Specs:

  • before_sign_out(conn :: Plug.Conn.t, location :: atom | nil) :: term