shogun-button-react 4.3.3 → 4.3.5

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.
@@ -75,7 +75,9 @@ export function ShogunButtonProvider({ children, core, options, onLoginSuccess,
75
75
  switch (method) {
76
76
  case "password":
77
77
  username = args[0];
78
+ console.log(`[DEBUG] ShogunButton: Calling core.login for username: ${username}`);
78
79
  result = await core.login(args[0], args[1]);
80
+ console.log(`[DEBUG] ShogunButton: core.login result:`, result);
79
81
  break;
80
82
  case "pair":
81
83
  // New pair authentication method
@@ -188,7 +190,9 @@ export function ShogunButtonProvider({ children, core, options, onLoginSuccess,
188
190
  if (args[1] !== args[2]) {
189
191
  throw new Error("Passwords do not match");
190
192
  }
193
+ console.log(`[DEBUG] ShogunButton: Calling core.signUp for username: ${username}`);
191
194
  result = await core.signUp(args[0], args[1]);
195
+ console.log(`[DEBUG] ShogunButton: core.signUp result:`, result);
192
196
  break;
193
197
  case "webauthn":
194
198
  username = args[0];