added local storage (cookie) of client ID for correct usage after auth redirect