View Source AshAuthentication.AddOn.Confirmation.Actions (ash_authentication v4.3.2)

Actions for the confirmation add-on.

Provides the code interface for working with resources via confirmation.

Summary

Functions

Attempt to confirm a user.

Get changes from the tokens resource for application.

Store changes in the tokens resource for later re-use.

Functions

Link to this function

confirm(strategy, params, opts \\ [])

View Source
@spec confirm(AshAuthentication.AddOn.Confirmation.t(), map(), keyword()) ::
  {:ok, Ash.Resource.record()} | {:error, any()}

Attempt to confirm a user.

Link to this function

get_changes(strategy, jti, opts \\ [])

View Source
@spec get_changes(AshAuthentication.AddOn.Confirmation.t(), String.t(), keyword()) ::
  {:ok, map()} | :error

Get changes from the tokens resource for application.

Link to this function

store_changes(strategy, token, changeset, opts \\ [])

View Source
@spec store_changes(
  AshAuthentication.AddOn.Confirmation.t(),
  String.t(),
  Ash.Changeset.t(),
  keyword()
) ::
  :ok | {:error, any()}

Store changes in the tokens resource for later re-use.