TokenPair
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()
function fromArray(array $row): selfParameters
$row—array<string,mixed>
expiresAtSeconds()
function expiresAtSeconds(): intAbsolute expiry as unix epoch seconds. Falls back to (now + expires_in).
toArray()
function toArray(): arrayReturns
array<string,mixed>