MCPcopy Create free account
hub / github.com/WardAnalytics/WardGraph / onSignupError

Function onSignupError

src/components/auth/AuthDialog.tsx:195–205  ·  view source on GitHub ↗
(error: any)

Source from the content-addressed store, hash-verified

193 * @returns void
194 */
195 const onSignupError = (error: any) => {
196 logAnalyticsEvent("signup_error", { method: "email", error });
197 const errorCode = error.code;
198 if (errorCode in AuthApiErrors) {
199 setAuthApiErrorMessage(AuthApiErrors[errorCode].message);
200 } else {
201 setAuthApiErrorMessage(
202 "An error occured while logging in. Please try again later.",
203 );
204 }
205 };
206
207 /**
208 * Callback function for when the user successfully signs up with Google

Callers

nothing calls this directly

Calls 1

logAnalyticsEventFunction · 0.90

Tested by

no test coverage detected