default: {
    userDeactivationService: {
        cleanup: () => Promise<void>;
        deactivateOldUsers: (
            yearsThreshold?: number,
        ) => Promise<DeactivationResult>;
    };
}

Type declaration

  • userDeactivationService: {
        cleanup: () => Promise<void>;
        deactivateOldUsers: (
            yearsThreshold?: number,
        ) => Promise<DeactivationResult>;
    }
    • cleanup: () => Promise<void>

      Cleans up resources used by the service

    • deactivateOldUsers: (yearsThreshold?: number) => Promise<DeactivationResult>

      Deactivates users that were created more than the specified years ago