oauth2DeviceAuthorize method

Future<DeviceAuthResponse> oauth2DeviceAuthorize({
  1. required DeviceAuthRequest body,
})

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));
}