How to set a cookie that is returned from api call? - SolidJS