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,9 @@
|
||||
|
||||
import { supabase } from '@/lib/supabase';
|
||||
import { handleNetworkError, parseResponse, showAuthToast } from './auth.utils';
|
||||
import {
|
||||
handleNetworkError,
|
||||
parseResponse,
|
||||
showAuthToast
|
||||
} from '@/utils/auth';
|
||||
|
||||
export const signUp = async (email: string, password: string, username: string) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user