Magic Auth - An Phoenix Authentication Library Designed for Effortless Setup 🚀

I wanted to use Magic Auth for an app, that requires different Auth routers for different users. As it is right now, it was not possible to implement. The configuration is a global singleton.

To solve it I have used the ProcessTree package, which allows quasi-global configuration per request. Liveviews required some special treatment with on_mount callbacks. But it seems to be working quite OK right now in my local setup.

Here is the branch on the fork:

And here PR: Feat: support for multiple different magic_auth configuration in the same application. by mindreframer · Pull Request #5 · gushonorato/magic_auth · GitHub

1 Like