From 4f0b34749c151d76fd9c0218e2d0599984608a07 Mon Sep 17 00:00:00 2001 From: gurusainath Date: Mon, 29 Apr 2024 23:12:43 +0530 Subject: [PATCH] chore: auth error handling --- web/components/page-views/signup.tsx | 2 +- web/helpers/authentication.helper.ts | 53 ++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 web/helpers/authentication.helper.ts diff --git a/web/components/page-views/signup.tsx b/web/components/page-views/signup.tsx index 89cb87ec4..cac0cca66 100644 --- a/web/components/page-views/signup.tsx +++ b/web/components/page-views/signup.tsx @@ -44,7 +44,7 @@ export const SignUpView = observer(() => {
- Plane background pattern { + const errorPayload = { + type: undefined, + message: errorMessage || undefined, + }; + const signUpErrorTypes = [""]; + const signInErrorTypes = [""]; + + console.log("errorType", errorType); + console.log("signUpErrorTypes", signUpErrorTypes); + console.log("signInErrorTypes", signInErrorTypes); + + return errorPayload; +};