Multifunctional roles of the autoimmune disease-associated tyrosine phosphatase PTPN22 in regulating T cell homeostasis. Here, PTPN22 is linked to glycogen storage disease VI.