prettier fix

This commit is contained in:
Danel Kungla
2025-09-19 17:22:36 +03:00
parent efa94b3322
commit 0c2cfe6d18
509 changed files with 17988 additions and 9920 deletions

View File

@@ -1,9 +1,11 @@
'use client';
import { useEffect, useState } from 'react';
import type { Provider } from '@supabase/supabase-js';
import { getCachedAuthConfig } from '../config/dynamic-auth.config';
import { authConfig } from '../config';
import { getCachedAuthConfig } from '../config/dynamic-auth.config';
interface AuthConfig {
providers: {
@@ -33,7 +35,9 @@ export function useAuthConfig(): UseAuthConfigResult {
setConfig(authConfig);
} catch (err) {
console.error('Failed to fetch auth config', err);
setError(err instanceof Error ? err : new Error('Failed to fetch auth config'));
setError(
err instanceof Error ? err : new Error('Failed to fetch auth config'),
);
setConfig(authConfig);
} finally {
setLoading(false);
@@ -52,7 +56,9 @@ export function useAuthConfig(): UseAuthConfigResult {
};
}
export function useProviderEnabled(provider: 'password' | 'magicLink' | Provider) {
export function useProviderEnabled(
provider: 'password' | 'magicLink' | Provider,
) {
const { config, loading, error } = useAuthConfig();
const isEnabled = (() => {