DoAuth.Invite (do_auth v0.5.0-pre)

Invite management server.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Call this ONLY IF you used a side-channel to validate that the person making request is a human.

Callback implementation for GenServer.init/1.

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

fulfill(pk, invite_presentation_map)

Specs

Link to this function

fulfill_simple(cred)

Specs

fulfill_simple(map()) :: Uptight.Result.t()

Call this ONLY IF you used a side-channel to validate that the person making request is a human.

Specs

get(map()) :: map() | nil
Link to this function

get_by_sig(sig)

Specs

get_by_sig(Uptight.Base.Urlsafe.t()) :: map() | nil
Link to this function

grant_root_invite()

Specs

grant_root_invite() :: Uptight.Result.t()

Specs

init(any()) :: {:ok, map()}

Callback implementation for GenServer.init/1.

Link to this function

is_public_key_unregistered(pk)

Specs

is_public_key_unregistered(Uptight.Base.Urlsafe.t()) :: boolean()
Link to this function

lookup(urlsafe_pk)

Specs

lookup(Uptight.Base.Urlsafe.t()) :: map() | nil
Link to this function

mk_invites(pk, capacity \\ 2)

Specs

mk_invites(Uptight.Base.Urlsafe.t(), pos_integer()) :: map()
Link to this function

remind_to_pay_from()

Specs

remind_to_pay_from() :: DateTime.t()
Link to this function

start_link(init_args)

Specs

start_link(any()) :: :ignore | {:error, any()} | {:ok, pid()}
Link to this function

unpaid_users_allowed_until()

Specs

unpaid_users_allowed_until() :: DateTime.t()