oauth2DeviceAuthorize method
Device Authorization POST /v1/oauth/device/authorize
Implementation
Future<DeviceAuthResponse> oauth2DeviceAuthorize({required DeviceAuthRequest body}) async {
final path = '/v1/oauth/device/authorize';
final res = await _request(
'POST',
path,
body: body.toJson(),
);
return DeviceAuthResponse.fromJson(Map<String, dynamic>.from(res as Map));
}