Re-authenticates the user upon token becoming invalid.