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:
gpt-engineer-app[bot]
2025-03-15 13:48:29 +00:00
parent 76f9b3b4df
commit 5b73eddd4f
9 changed files with 143 additions and 113 deletions

View File

@@ -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 {