View Source Pow.Plug.RequireAuthenticated (Pow v1.0.38)

This plug ensures that a user has been authenticated.

You can see Pow.Phoenix.PlugErrorHandler for an example of the error handler module.

Example

plug Pow.Plug.RequireAuthenticated,
  error_handler: MyApp.CustomErrorHandler