feat: add OAuth redirect handling and update Google OAuth integration
This commit is contained in:
@@ -7,7 +7,6 @@ import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { z } from 'zod';
|
||||
import { Ionicons } from '@expo/vector-icons';
|
||||
import * as Google from 'expo-auth-session/providers/google';
|
||||
import * as WebBrowser from 'expo-web-browser';
|
||||
import { Screen } from '@presentation/components/layout/Screen';
|
||||
import { Input } from '@presentation/components/ui/Input';
|
||||
import { Button } from '@presentation/components/ui/Button';
|
||||
@@ -16,9 +15,6 @@ import { loginUseCase, googleLoginUseCase } from '@infrastructure/container';
|
||||
import { useAuthStore } from '@store/authStore';
|
||||
import { CatIcon } from '@presentation/components/icons/CatIcon';
|
||||
|
||||
// Necessário para fechar o browser após redirect OAuth no Android/iOS
|
||||
WebBrowser.maybeCompleteAuthSession();
|
||||
|
||||
const schema = z.object({
|
||||
email: z.string().email('E-mail inválido'),
|
||||
password: z.string().min(1, 'Senha obrigatória'),
|
||||
|
||||
Reference in New Issue
Block a user