Adjust MFA factor fetching and verification process
This commit refines the Multi-Factor Authentication (MFA) handling by removing 'requireUser' method, optimizing 'useFetchMfaFactors' hook to avoid fetching stale data, and improving error logging. The changes enhance the system's user session management and the MFA challenge response, ensuring smoother user experience and potential troubleshooting.
This commit is contained in:
@@ -20,5 +20,6 @@ export function useFetchAuthFactors(userId: string) {
|
||||
return useQuery({
|
||||
queryKey,
|
||||
queryFn,
|
||||
staleTime: 0,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user