@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.
- package/components/metadata/registry.json +2 -2
- package/components/metadata/registry.md +2 -2
- package/dist/actions/magic-link-actions.d.mts +1 -1
- package/dist/actions/magic-link-actions.d.ts +1 -1
- package/dist/actions/magic-link-actions.js +2 -2
- package/dist/actions/magic-link-actions.js.map +1 -1
- package/dist/esm/actions/magic-link-actions.js +2 -2
- package/dist/esm/actions/magic-link-actions.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/use-verify-magic-link.js +4 -3
- package/dist/esm/use-verify-magic-link.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/use-verify-magic-link.d.mts +3 -2
- package/dist/use-verify-magic-link.d.ts +3 -2
- package/dist/use-verify-magic-link.js +4 -3
- package/dist/use-verify-magic-link.js.map +1 -1
- package/package.json +1 -1
|
@@ -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,
|