@sanvika/auth 1.0.26 → 1.0.27
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 +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -241,11 +241,16 @@ function SanvikaAccountButtonContent({
|
|
|
241
241
|
"button",
|
|
242
242
|
{
|
|
243
243
|
className: `snvk-guestBtn ${className}`,
|
|
244
|
-
onClick: () => {
|
|
245
|
-
console.log("[SanvikaAccountButton]
|
|
244
|
+
onClick: (e) => {
|
|
245
|
+
console.log("[SanvikaAccountButton] \u2705\u2705\u2705 BUTTON CLICKED!");
|
|
246
|
+
console.log("[SanvikaAccountButton] Event target:", e.target);
|
|
247
|
+
console.log("[SanvikaAccountButton] Current URL:", window.location.href);
|
|
246
248
|
if (onLoginClick) {
|
|
249
|
+
console.log("[SanvikaAccountButton] Calling custom onLoginClick");
|
|
247
250
|
onLoginClick();
|
|
248
251
|
} else {
|
|
252
|
+
console.log("[SanvikaAccountButton] Redirecting to /authorize...");
|
|
253
|
+
console.log("[SanvikaAccountButton] Target URL:", window.location.origin + "/authorize");
|
|
249
254
|
window.location.href = "/authorize";
|
|
250
255
|
}
|
|
251
256
|
},
|