# `AshAuthentication.Strategy.Password.Actions`
[🔗](https://github.com/team-alembic/ash_authentication/blob/main/lib/ash_authentication/strategies/password/actions.ex#L5)

Actions for the password strategy

Provides the code interface for working with resources via a password
strategy.

# `register`

```elixir
@spec register(AshAuthentication.Strategy.Password.t(), map(), keyword()) ::
  {:ok, Ash.Resource.Record.t()} | {:error, any()}
```

Attempt to register a new user.

# `reset`

```elixir
@spec reset(AshAuthentication.Strategy.Password.t(), map(), keyword()) ::
  {:ok, Ash.Resource.Record.t()} | {:error, any()}
```

Attempt to change a user's password using a reset token.

# `reset_request`

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

Request a password reset.

# `sign_in`

```elixir
@spec sign_in(AshAuthentication.Strategy.Password.t(), map(), keyword()) ::
  {:ok, Ash.Resource.Record.t()}
  | {:error, AshAuthentication.Errors.AuthenticationFailed.t()}
```

Attempt to sign in a user.

# `sign_in_with_token`

```elixir
@spec sign_in_with_token(AshAuthentication.Strategy.Password.t(), map(), keyword()) ::
  {:ok, Ash.Resource.Record.t()} | {:error, any()}
```

Attempt to sign in a previously-authenticated user with a short-lived sign in token.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
