Persist the api_key in local storage