Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

617 B
Raw Blame
<?php

namespace HiEvents\Services\Domain\Auth\DTO;

use HiEvents\DataTransferObjects\BaseDTO;
use HiEvents\DomainObjects\UserDomainObject;
use Illuminate\Support\Collection;

class LoginResponse extends BaseDTO
{
    public function __construct(
        public Collection $accounts,
        public readonly ?string $token,
        public readonly UserDomainObject $user,
        public readonly ?int $accountId = null,
        public readonly ?string $twoFactorChallengeToken = null,
        public readonly ?int $recoveryCodesRemaining = null,
        public readonly ?string $trustedDeviceToken = null,
    ) {}
}