Skip to content

Commit

Permalink
remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmderby committed Oct 16, 2024
1 parent 17566f5 commit 209e89a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
11 changes: 2 additions & 9 deletions packages/client/ui/react-ui/src/hooks/useAuthSignIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,12 @@ async function onEmailSignIn(email: string, options: { baseUrl: string; apiKey:
method: "POST",
body: JSON.stringify({ email }),
});
console.log("Response from initiate-email-authentication", response);

if (!response?.ok) {
throw new Error("Failed to send email. Please try again or contact support.");
}

const resData = await response.json();
console.log("Data from initiate-email-authentication", resData);
return resData;
return await response.json();
} catch (err) {
console.error("Error signing in via email ", err);
throw new Error("Error signing in via email " + err);
Expand Down Expand Up @@ -95,15 +92,11 @@ async function onFarcasterSignIn(data: UseSignInData, options: { baseUrl: string
method: "POST",
});

console.log("Response from /authenticate", response);

if (!response?.ok) {
throw new Error("Failed to sign in via farcaster. Please try again or contact support.");
}

const resData = await response.json();
console.log("Data from /authenticate", resData);
return resData;
return await response.json();
} catch (err) {
console.error("Error signing in via farcaster ", err);
throw new Error("Error signing in via farcaster " + err);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export const useOAuthWindowListener = (
incomingEvents,
outgoingEvents,
});
console.log("Child window initialized", { url: window.location.origin });
}

return () => {
Expand Down

0 comments on commit 209e89a

Please sign in to comment.