DeviceCodeResponse class

Represents the response for an OAuth2 device_code request.

Constructors

DeviceCodeResponse(String deviceCode, String userCode, Uri verificationUri, int expiresIn, {Uri? verificationUriComplete, int? interval})
const

Properties

deviceCode String
REQUIRED. The device verification code.
final
expiresIn int
The lifetime, in seconds of the deviceCode and userCode.
final
hashCode int
The hash code for this object.
no setterinherited
interval int?
OPTIONAL. The minimum amount of time in seconds that the client SHOULD wait between polling requests to the token endpoint. If no value is provided, clients MUST use 5 as the default.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userCode String
REQUIRED. The end-user verification code.
final
verificationUri Uri
REQUIRED. The end-user verification URI on the authorization server. The URI should be short and easy to remember as end users will be asked to manually type it into their user-agent.
final
verificationUriComplete Uri?
OPTIONAL. A verification URI that includes the userCode (or other information with the same function as the userCode), designed for non-textual transmission.
final

Methods

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

Operators

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