mix ash_authentication.install (ash_authentication v4.13.3)
View SourceInstalls AshAuthentication. Invoke with mix igniter.install ash_authentication
Example
To install with default settings:
mix igniter.install ash_authentication
To install with a custom domain and resources:
mix igniter.install ash_authentication --auth-strategy magic_link,password --accounts MyApp.AshAccounts --user MyApp.AshAccounts.User --token MyApp.AshAccounts.Token
Options
--accountsor-a- The domain that contains your resources. Defaults toYourApp.Accounts.--useror-u- The resource that represents a user. Defaults to<accounts>.User.--tokenor-t- The resource that represents a token. Defaults to<accounts>.Token.--auth-strategy- The strategy or strategies to use for authentication. None by default, can be specified multiple times for more than one strategy. To add after installation, usemix ash_authentication.add_strategy password