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

Function onGoogleSignupError

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

Source from the content-addressed store, hash-verified

221 * @returns void
222 */
223 const onGoogleSignupError = (error: any) => {
224 logAnalyticsEvent("signup_error", { method: "google", error });
225 const errorCode = error.code;
226 if (errorCode in AuthApiErrors) {
227 setAuthApiErrorMessage(AuthApiErrors[errorCode].message);
228 } else {
229 setAuthApiErrorMessage(
230 "An error occured while logging in. Please try again later.",
231 );
232 }
233 };
234
235 /**
236 * Callback function for when the user successfully resets their password

Callers

nothing calls this directly

Calls 1

logAnalyticsEventFunction · 0.90

Tested by

no test coverage detected