@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.
- package/dist/index.js +3 -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 :
|
|
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
|
-
|
|
542
|
+
accessToken || ""
|
|
542
543
|
)}`,
|
|
543
544
|
className: "snvk-dropdownItem snvk-deleteItem",
|
|
544
545
|
role: "menuitem",
|