I would recommend using the prefix option in repo_opts. You can use triplex to make it easy: Multitenancy with Pow — Pow v1.0.39
If you want to handle it yourself by limiting scope, then there is really no way around it. You’ll have to set up a custom context module and custom changeset. A queryable wouldn’t work as for example authenticate uses Repo.get_by/3.






















