AuthClientDeviceAuthorization class final

Device-code response returned by the RFC 8628 authorization endpoint.

Constructors

AuthClientDeviceAuthorization({required String deviceCode, required String userCode, required String verificationUri, required Duration expiresIn, required Duration interval, String? verificationUriComplete, DateTime? receivedAt})
Creates an RFC 8628 device-authorization response.
const
AuthClientDeviceAuthorization.fromJson(Map<String, dynamic> json, {DateTime? receivedAt})
Decodes a device-authorization response from JSON.
factory

Properties

deviceCode → String
Secret device code used when polling the token endpoint.
final
expiresIn → Duration
Lifetime of the device authorization.
final
hashCode → int
The hash code for this object.
no setterinherited
interval → Duration
Minimum delay between token polling requests.
final
receivedAt → DateTime?
When the client received this response, used to enforce expiresIn locally while polling.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userCode → String
Short code displayed to the user for approval.
final
verificationUri → String
URI where the user enters userCode.
final
verificationUriComplete → String?
URI containing both the verification URI and user code, if supplied.
final

Methods

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

Operators

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