ror(&quot;Unsupported&quot;);
      }
      window.cookieStore.set({
        name: &quot;partition_test&quot;,
        value: data,
        expires: Date.now() + msPerHour,
        sameSite: &quot;none&quot;
      });
    }

read: async () =&gt; {
      if (!window.cookieStore) {
        throw new Error(&quot;Unsupported&quot;);
      }
      const cookie = await window.cookieStore.get(&quot;partition_test&quot;);
      if (!cookie) {
        return null;
      }
      return cookie.value;
    }

result, sa