Use localStorage to avoid some traffic after login