asobi_guest_reaper (asobi v0.75.1)
View SourceSummary
Functions
Whether PlayerId is a guest nobody has claimed.
Functions
-spec cached_unlinked_count() -> non_neg_integer() | unknown.
-spec handle_call(term(), gen_server:from(), map()) -> {reply, term(), map()}.
-spec init([]) -> {ok, map()}.
-spec sweep_now() -> {ok, non_neg_integer()}.
Whether PlayerId is a guest nobody has claimed.
Unclaimed means the player never set a password and owns no identity from
another provider - linking Google or Steam is a claim even though
asobi_oauth_controller:link/1 sets no password and leaves the guest identity
in place. The upgrade predicate inside asobi_guest_controller is a
deliberately different, looser question - may this account be upgraded - and
is not a substitute for this one anywhere erasure is involved.
Answers false when a lookup fails, so a caller about to delete something
fails closed.