@replicated/portal-components 0.0.28 → 0.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -437,12 +437,12 @@ var isHttpApiOrigin = () => {
437
437
  };
438
438
 
439
439
  // src/actions/magic-link-actions.ts
440
- async function verifyMagicLinkWithCookieImpl(code) {
440
+ async function verifyMagicLinkWithCookieImpl(code, isPreview) {
441
441
  try {
442
442
  const result = await verifyMagicLink.run({ nonce: code });
443
443
  const cookieStore = await cookies();
444
444
  const secure = true;
445
- const sameSiteValue = isHttpApiOrigin() ? "none" : "lax";
445
+ const sameSiteValue = isHttpApiOrigin() || isPreview ? "none" : "lax";
446
446
  cookieStore.set("portal_session", result.token, {
447
447
  httpOnly: true,
448
448
  secure,