account

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(app core.App)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL