@sanvika/auth 1.0.12 → 1.0.13

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/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -512,7 +512,7 @@ function SanvikaAccountButton({
512
512
  /* @__PURE__ */ jsxs(
513
513
  "a",
514
514
  {
515
- href: "https://accounts.sanvikaproduction.com/dashboard/user-profile",
515
+ href: `https://accounts.sanvikaproduction.com/dashboard/user-profile?token=${encodeURIComponent(accessToken || "")}`,
516
516
  className: "snvk-dropdownItem",
517
517
  role: "menuitem",
518
518
  onClick: () => setDropdownOpen(false),
@@ -525,7 +525,7 @@ function SanvikaAccountButton({
525
525
  /* @__PURE__ */ jsxs(
526
526
  "a",
527
527
  {
528
- href: onboardingPath && user.status === "onboarding" ? onboardingPath : "https://accounts.sanvikaproduction.com/dashboard",
528
+ href: onboardingPath && user.status === "onboarding" ? onboardingPath : `https://accounts.sanvikaproduction.com/dashboard?token=${encodeURIComponent(accessToken || "")}`,
529
529
  className: "snvk-dropdownItem",
530
530
  role: "menuitem",
531
531
  onClick: () => setDropdownOpen(false),
@@ -540,7 +540,7 @@ function SanvikaAccountButton({
540
540
  {
541
541
  href: `https://accounts.sanvikaproduction.com/account/delete?token=${encodeURIComponent(
542
542
  accessToken || ""
543
- )}`,
543
+ )}&origin=${encodeURIComponent(window.location.origin)}`,
544
544
  className: "snvk-dropdownItem snvk-deleteItem",
545
545
  role: "menuitem",
546
546
  onClick: () => setDropdownOpen(false),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanvika/auth",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Sanvika Auth SDK — React components and hooks for Sanvika SSO integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",