Phx.gen.auth and role based authentication

I know that auth is something to take seriously…
So, rolling out your own auth system is out of the question…

One solution is going with a library (which I dislike because of some magic and things being implicit and hidden) so I really liked phx_gen_auth because how everything is transparent and explicit.

Another solution is going with external tools like keycloak.

I never looked at supabase (or firebase) thinking about it being a database layer for frontends but with auth facilities.

So your comment is quite interesting and I’m also interested to read more about the subject of using supabase for the auth layer (if you have any links it’ll much appreciated :slight_smile: