Guardian v0.13.0 Guardian.Hooks behaviour

This module helps to hook into the lifecycle of authentication.

Summary

Callbacks

after_encode_and_sign(resource, type, claims, token)

Specs

after_encode_and_sign(resource :: term, type :: atom, claims :: map, token :: String.t) :: term
after_sign_in(conn, location)

Specs

after_sign_in(conn :: Plug.Conn.t, location :: atom | nil) :: term
before_encode_and_sign(resource, type, claims)

Specs

before_encode_and_sign(resource :: term, type :: atom, claims :: map) :: term
before_sign_out(conn, location)

Specs

before_sign_out(conn :: Plug.Conn.t, location :: atom | nil) :: term
on_revoke(claims, jwt)

Specs

on_revoke(claims :: map, jwt :: String.t) :: term
on_verify(claims, jwt)

Specs

on_verify(claims :: map, jwt :: String.t) :: term