🔒 Magic Auth         CI

Magic Auth is an authentication library for Phoenix that provides effortless configuration and flexibility for your project.

Magic Auth in action

Key Features

Documentation

You can find the full documentation for Magic Auth on HexDocs.

Contributing

We welcome contributions! Here's how you can help improve Magic Auth:

Development Setup

Clone the repository

git clone https://github.com/your-username/magic_auth.git
cd magic_auth

Install dependencies

mix deps.get

Setup the test database

mix magic_auth.setup_test_db

Running Tests

Execute the test suite with:

mix test

Alternatively, you can use mix test.watch for automatic test execution on file changes:

mix test.watch

Building Documentation

Generate documentation locally:

mix docs

Compilation

Compile the project:

mix compile

Before submitting a pull request, please:

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/magic_auth.

Support This Project

If you find Magic Auth helpful, show your support by:

Acknowledgements

Much of the code in this library is based on the mix phx.gen.auth generator. Special thanks to all the contributors of mix phx.gen.auth for their hard work and dedication in creating such a valuable tool for the Phoenix community. Your efforts have significantly inspired and influenced the development of Magic Auth.

Copyright and License

Copyright (c) 2025, Gustavo Honorato.

Magic Auth source code is licensed under the MIT License.