AuthTokens class

Authentication tokens entity returned by the plugin.

For TV devices: contains only token, refreshToken, deviceId. For other platforms: contains full login response with config.

Constructors

AuthTokens({required String token, required String refreshToken, required String deviceId, String? reportingToken, LoginConfig? config, LoginResponse? loginResponse})
const

Properties

config LoginConfig?
Full response configuration data (null for TV devices)
final
deviceId String
The device ID used for authentication
final
hashCode int
The hash code for this object.
no setterinherited
isFullResponse bool
Check if this is a full response (non-TV device)
no setter
isTvDevice bool
Check if this is a TV device response (no config)
no setter
loginResponse LoginResponse?
Full login response (null for TV devices)
final
refreshToken String
The refresh token for obtaining new tokens
final
reportingToken String?
Optional reporting token
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
The authentication token
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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