# `EzAuth.Handler`
[🔗](https://github.com/thiagomajesk/ez_auth/blob/v0.1.0/lib/ez_auth/handler.ex#L1)

Customizes HTTP responses after EzAuth actions.

Configure a handler with `auth_routes(handler: MyAppWeb.AuthHandler)` when
your Phoenix app needs to add flashes, redirect somewhere specific, or render
a custom response after an authentication action.

# `handle_failure`
*optional* 

```elixir
@callback handle_failure(
  conn :: struct(),
  event :: {atom(), atom()},
  reason :: term()
) :: struct()
```

# `handle_success`
*optional* 

```elixir
@callback handle_success(
  conn :: struct(),
  event :: {atom(), atom()},
  user :: struct()
) :: struct()
```

# `maybe_invoke`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
