From 8e2f7e29d650db54c1105dfe9a1d54d1aef4b315 Mon Sep 17 00:00:00 2001 From: Catherine Tan Date: Thu, 12 Dec 2024 23:22:58 -0800 Subject: [PATCH] fix lint errors in AuthProvider --- utils/AuthProvider.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/utils/AuthProvider.tsx b/utils/AuthProvider.tsx index 395c34c..ff68ee5 100644 --- a/utils/AuthProvider.tsx +++ b/utils/AuthProvider.tsx @@ -10,8 +10,8 @@ import { useState, } from 'react'; import { UUID } from 'crypto'; -import { AuthError, AuthResponse, Session } from '@supabase/supabase-js'; -import { checkEmailExists } from '@/api/supabase/queries/users'; +import { AuthResponse, Session } from '@supabase/supabase-js'; +// import { checkEmailExists } from '@/api/supabase/queries/users'; import supabase from '../api/supabase/createClient'; interface AuthContextType { @@ -78,7 +78,8 @@ export function AuthProvider({ children }: { children: ReactNode }) { // Sign Up function const signUp = useCallback(async (email: string, password: string) => { // will trigger onAuthStateChange to update the session - // check if email already exists + + // TODO: decide if we need to check if email already exists // const emailExists = await checkEmailExists(email); // if (emailExists) { // const authError = new AuthError('Account already exists for this email');