@sanvika/auth 1.0.11 → 1.0.12

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 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -382,6 +382,7 @@ function SanvikaAccountButton({
382
382
  logout,
383
383
  redirectToLogin,
384
384
  dashboardPath,
385
+ accessToken,
385
386
  updateUser
386
387
  } = useSanvikaAuth();
387
388
  const [dropdownOpen, setDropdownOpen] = useState2(false);
@@ -524,7 +525,7 @@ function SanvikaAccountButton({
524
525
  /* @__PURE__ */ jsxs(
525
526
  "a",
526
527
  {
527
- href: onboardingPath && user.status === "onboarding" ? onboardingPath : dashboardPath || "https://accounts.sanvikaproduction.com/dashboard",
528
+ href: onboardingPath && user.status === "onboarding" ? onboardingPath : "https://accounts.sanvikaproduction.com/dashboard",
528
529
  className: "snvk-dropdownItem",
529
530
  role: "menuitem",
530
531
  onClick: () => setDropdownOpen(false),
@@ -538,7 +539,7 @@ function SanvikaAccountButton({
538
539
  "a",
539
540
  {
540
541
  href: `https://accounts.sanvikaproduction.com/account/delete?token=${encodeURIComponent(
541
- (user == null ? void 0 : user.accessToken) || ""
542
+ accessToken || ""
542
543
  )}`,
543
544
  className: "snvk-dropdownItem snvk-deleteItem",
544
545
  role: "menuitem",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanvika/auth",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Sanvika Auth SDK — React components and hooks for Sanvika SSO integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",