Refactor auth.utils.ts
Refactor auth.utils.ts into smaller modules for better organization and maintainability. Split functions into networkUtils.ts, responseUtils.ts, and toastUtils.ts based on their purpose.
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
|
||||
import { supabase } from '@/lib/supabase';
|
||||
import { handleNetworkError, parseResponse, showAuthToast, verifyServerConnection } from './auth.utils';
|
||||
import {
|
||||
handleNetworkError,
|
||||
parseResponse,
|
||||
showAuthToast,
|
||||
verifyServerConnection
|
||||
} from '@/utils/auth';
|
||||
|
||||
export const signIn = async (email: string, password: string) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user