@lumiapassport/ui-kit 1.16.2 → 1.16.3

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 CHANGED
@@ -5638,7 +5638,7 @@ function Header() {
5638
5638
  // package.json
5639
5639
  var package_default = {
5640
5640
  name: "@lumiapassport/ui-kit",
5641
- version: "1.16.2",
5641
+ version: "1.16.3",
5642
5642
  description: "React UI components and hooks for Lumia Passport authentication and Account Abstraction",
5643
5643
  type: "module",
5644
5644
  main: "./dist/index.cjs",
@@ -7005,23 +7005,16 @@ function Social(props) {
7005
7005
  const { user } = result;
7006
7006
  if (normalizedProviderId === "x" || normalizedProviderId === "twitter") {
7007
7007
  console.log("[AuthModal] X OAuth completed, user authenticated via callback");
7008
- const { tssUrl: tssUrl2 } = getServiceUrls();
7009
- const verifyUrl = addProjectIdToUrl(`${tssUrl2}/api/auth/verify`);
7010
- const verifyResponse = await fetch(verifyUrl, {
7011
- method: "GET",
7012
- credentials: "include"
7013
- });
7014
- if (!verifyResponse.ok) {
7008
+ if (!user) {
7015
7009
  setAlert({
7016
7010
  title: "Authentication Failed",
7017
- message: "Failed to verify X authentication"
7011
+ message: "No user data received from X authentication"
7018
7012
  });
7019
7013
  setIsLoading(false);
7020
7014
  return;
7021
7015
  }
7022
- const loginResponse2 = await verifyResponse.json();
7023
- console.log("[AuthModal] X login verified:", loginResponse2);
7024
- await finalizeSocialLogin(loginResponse2, "x");
7016
+ console.log("[AuthModal] X login data:", user);
7017
+ await finalizeSocialLogin(user, "x");
7025
7018
  return;
7026
7019
  }
7027
7020
  if (!user) {