v0.1.0
Initial release of AshMultiAccount — multi-account linking and switching for Phoenix apps using Ash and AshAuthentication.
Features
- Ash DSL extensions for User and LinkedAccount resources — attributes, relationships, actions, and calculations generated automatically by transformers
- Configurable active-user checks, display fields, and max linked accounts via DSL options
- Phoenix controller mixin with link/switch actions, session regeneration, and overridable redirect paths
- LiveView hook (
on_mount) and controller plug (LoadMultiAccount) — both resolve@current_userand@primary_userassigns - Router macros for link/switch routes
- Session token plug for automatic UUID token management
- Slot-based account switcher component with no styling imposed
- Igniter installer (
mix igniter.install ash_multi_account) for automated setup - Self-link prevention, max-account enforcement, and session ID rotation on switch
- Works with any Ash data layer and any AshAuthentication strategy