Skip to content

v0.1.0

Choose a tag to compare

@chriscox chriscox released this 21 Feb 00:18
· 5 commits to main since this release

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_user and @primary_user assigns
  • 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

Documentation