@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.
Files changed (2) hide show
  1. package/dist/index.js +7 -2
  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] Guest button clicked, redirecting to /authorize");
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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanvika/auth",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "Sanvika Auth SDK — React components and hooks for Sanvika SSO integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",