rivet_ident
v3.0.0
  • Pages
  • Modules

    View Source Rivet.Ident.UserCode.Lib (rivet_ident v3.0.0)

    Summary

    Types

    ecto_p_result()
    model_p_result()

    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 \\ %{})

    Types

    Link to this type

    ecto_p_result()

    View Source
    @type ecto_p_result() :: {:ok | :error, Ecto.Changeset.t()}
    Link to this type

    model_p_result()

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

    Functions

    Link to this function

    clear_all_codes(for_user_id, type)

    View Source
    Link to this function

    clear_expired_codes()

    View Source
    Link to this function

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

    View Source
    Link to this function

    get_valid(code)

    View Source
    Link to this function

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

    View Source

    Hex Package Hex Preview (current file) Download ePub version

    Built using ExDoc (v0.30.6) for the Elixir programming language