Skip to content

Commit

Permalink
fix lint errors in AuthProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
ccatherinetan committed Dec 13, 2024
1 parent 2c884d0 commit 8e2f7e2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions utils/AuthProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 8e2f7e2

Please sign in to comment.