Rivet.Ident.UserCode.Lib (rivet_ident v3.5.0)

View Source

Summary

Types

ecto_p_result()

@type ecto_p_result() :: {:ok | :error, Ecto.Changeset.t()}

model_p_result()

@type model_p_result() :: {:ok, Rivet.Ident.UserCode.t()}

Functions

clear_all_codes(for_user_id, type)

clear_expired_codes()

generate_code(for_user_id, type, expiration_minutes, meta \\ %{})

get_valid(code)

reset_generate(for_user_id, type, meta \\ %{})