AuthResponse
class
Vendidit\AuthServer\Domain\AuthResponseSource:src/Domain/AuthResponse.php
Response from /auth/login, /auth/register, /auth/refresh, /auth/sso/exchange.
Wire shape (auth-server/internal/api/dto/auth.go LoginResponse): { user?, organization?, tokens?, roles?, permissions?, requires_2fa? }
The tokens field is null when requiresTwoFactor is true.
Methods
`__construct(public readonly ?array $user,
public readonly ?array $organization, public readonly ?TokenPair $tokens, public readonly array $roles, public readonly array $permissions, public readonly bool $requiresTwoFactor,)`@param array<string,mixed>|null $user
@param array<string,mixed>|null $organization
@param list
fromArray(array $row)
@param array<string,mixed> $row