@elvix.is/sdk 0.6.0 → 0.6.1

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.
Files changed (2) hide show
  1. package/dist/react.js +0 -11
  2. package/package.json +1 -1
package/dist/react.js CHANGED
@@ -1552,17 +1552,6 @@ function AuthBody({
1552
1552
  return;
1553
1553
  }
1554
1554
  if (body.next_step === "passkey") {
1555
- if (!isSameOrigin(baseUrl)) {
1556
- const redirect2 = finalRedirect(body.final ?? body.redirect);
1557
- const token2 = body.token ?? getElvixToken() ?? void 0;
1558
- onResult?.({ ok: true, redirect: redirect2, token: token2 });
1559
- if (onAuthenticated) {
1560
- onAuthenticated({ ok: true, redirect: redirect2, token: token2 });
1561
- return;
1562
- }
1563
- window.location.href = redirect2;
1564
- return;
1565
- }
1566
1555
  setBackendFinalRedirect(body.final ?? "/");
1567
1556
  setStep("passkey");
1568
1557
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elvix.is/sdk",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Official elvix SDK. Drop-in React components, server helpers, and an MCP server so AI coding agents integrate elvix on the first try.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://elvix.is",