Payload class

Exchange a refresh token for a new access token (and optionally a new refresh token). 0.2 adds no new payload member: it accepts an optional framework proof made by a session key bound to the session at auth/authenticate/0.2 or 0.3, presented alongside — never instead of — the refresh token, and it never advances a session's expiresAt past its absoluteExpiresAt. See Conformance and Security & Privacy.

Constructors

Payload({required String refreshToken, List<String>? scope, Ext? ext})
const
Payload.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

ext → Ext?
Ecosystem-defined extension members per SPEC.md §4.5.1.
final
hashCode → int
The hash code for this object.
no setterinherited
refreshToken → String
The refresh token previously issued in a TokenBundle. Consumers verify it server-side; producers treat it as opaque.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope → List<String>?
Optional capability tags requested on the new access token. MAY be narrower than the original session's scope; consumers MUST NOT widen scope on refresh.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize to a JSON-encodable map, omitting absent members.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited