Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
Register wires account-deactivation ("soft delete") behaviour onto the users collection. Hard-deleting a user cascades to all of their projects, tasks, docs, calendar events and chat history — and orphans shared team data — so account removal is modelled as deactivation instead. This package enforces the rules that make the flag meaningful:
- a deactivated account cannot obtain or refresh auth tokens;
- deactivating rotates the token key so already-issued tokens stop working immediately;
- only a superuser may clear the flag (users cannot reactivate themselves).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.