# auth_plug v1.6.0 - Table of Contents

Turnkey Auth Plug lets you protect any route in an Elixir/Phoenix App.

## Modules

- [AuthPlug](AuthPlug.md): `AuthPlug` handles all our auth needs in just a handful of lines of code.
Please see `README.md` for setup instructions.

- [AuthPlug.Application](AuthPlug.Application.md): Sample Application for  showing easy setup of auth_plug
- [AuthPlug.HTTPoisonMock](AuthPlug.HTTPoisonMock.md): This is a TestDouble for HTTPoison which returns a predictable response.
Please see: https://github.com/dwyl/elixir-auth-google/issues/35

- [AuthPlug.Helpers](AuthPlug.Helpers.md): Helper functions for apps using auth_plug.
- [AuthPlug.Router](AuthPlug.Router.md)
- [AuthPlug.Token](AuthPlug.Token.md): Token module to create and validate jwt.
see https://hexdocs.pm/joken/configuration.html#module-approach

- [AuthPlugOptional](AuthPlugOptional.md): `AuthPlugOptional` handles any route where authentication is optional
e.g. if you're building a CMS where content is public
but seeing comments requires auth, the same page can show different
content depending on if the person has logged in or not.
Please see `README.md` for for optional auth usage.

