TokenPair
class
Vendidit\AuthServer\Domain\TokenPairSource:src/Domain/TokenPair.php
The token pair returned by /auth/login, /auth/refresh, /auth/sso/exchange.
Wire shape (auth-server/internal/api/dto/auth.go TokenResponse): { access_token, refresh_token, token_type, expires_in, expires_at }
Methods
fromArray(array $row)
@param array<string,mixed> $row
expiresAtSeconds()
Absolute expiry as unix epoch seconds. Falls back to (now + expires_in).
toArray()
@return array<string,mixed>