DeviceFlow class

Device Flow Helper

Example:

Constructors

DeviceFlow(String clientId, {List<String> scopes = const [], String baseUrl = 'https://github.com', String? grantType = "urn:ietf:params:oauth:grant-type:device_code"})

Properties

baseUrl → String
Device flow Base URL
final
clientId → String
Client ID
final
github ↔ GitHub?
GitHub instance
getter/setter pair
grantType → String?
Grant type
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scopes → List<String>
Requested Scopes
final

Methods

createAuthorizeUrl() → String
Generates an Authorization URL
exchange() → Future<DeviceFlowExchangeResponse>
Exchange device code after user verified for token
fetchUserCode() → Future<String>
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