View Source AshAuthentication.Strategy.Password.Actions (ash_authentication v4.3.5)
Actions for the password strategy
Provides the code interface for working with resources via a password strategy.
Summary
Functions
Attempt to register a new user.
Attempt to change a user's password using a reset token.
Request a password reset.
Attempt to sign in a user.
Attempt to sign in a previously-authenticated user with a short-lived sign in token.
Functions
@spec register(AshAuthentication.Strategy.Password.t(), map(), keyword()) :: {:ok, Ash.Resource.record()} | {:error, any()}
Attempt to register a new user.
@spec reset(AshAuthentication.Strategy.Password.t(), map(), keyword()) :: {:ok, Ash.Resource.record()} | {:error, any()}
Attempt to change a user's password using a reset token.
@spec reset_request(AshAuthentication.Strategy.Password.t(), map(), keyword()) :: :ok | {:error, any()}
Request a password reset.
@spec sign_in(AshAuthentication.Strategy.Password.t(), map(), keyword()) :: {:ok, Ash.Resource.record()} | {:error, AshAuthentication.Errors.AuthenticationFailed.t()}
Attempt to sign in a user.
@spec sign_in_with_token(AshAuthentication.Strategy.Password.t(), map(), keyword()) :: {:ok, Ash.Resource.record()} | {:error, any()}
Attempt to sign in a previously-authenticated user with a short-lived sign in token.