View Source AshAuthentication.Strategy.Password.Actions (ash_authentication v4.0.0)

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

Link to this function

register(strategy, params, options)

View Source
@spec register(AshAuthentication.Strategy.Password.t(), map(), keyword()) ::
  {:ok, Ash.Resource.record()} | {:error, any()}

Attempt to register a new user.

Link to this function

reset(strategy, params, options)

View Source
@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.

Link to this function

reset_request(strategy, params, options)

View Source
@spec reset_request(AshAuthentication.Strategy.Password.t(), map(), keyword()) ::
  :ok | {:error, any()}

Request a password reset.

Link to this function

sign_in(strategy, params, options)

View Source

Attempt to sign in a user.

Link to this function

sign_in_with_token(strategy, params, options)

View Source
@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.