<?php

namespace App\Domains\Auth\Requests;

use Illuminate\Foundation\Http\FormRequest;

class GoogleTokenExchangeRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    /** @return array<string, array<int, string>> */
    public function rules(): array
    {
        return [
            'oauth_code' => ['required', 'uuid'],
            'tenant_codigo' => ['required', 'string', 'exists:tenants,codigo'],
        ];
    }
}
