Saving state before converting passport routes to Angular