@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.
- package/dist/index.js +3 -3
- 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:
|
|
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 :
|
|
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),
|