CopilotDeviceGrant class final

One granted device-code session: what the user sees (userCode at verificationUri) plus what the poller needs (deviceCode, expiresIn, interval).

Constructors

CopilotDeviceGrant({required String deviceCode, required String userCode, required String verificationUri, required int expiresIn, required int interval})
Creates a grant.
const

Properties

deviceCode → String
The server-side device code (sent only to the poll endpoint).
final
expiresIn → int
The code's lifetime in seconds (the polling deadline).
final
hashCode → int
The hash code for this object.
no setterinherited
interval → int
The server-recommended base polling interval in seconds.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userCode → String
The human-typed code shown to the user.
final
verificationUri → String
Where the user enters userCode.
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