linkDevice method
Linking Device ID authentication
Implementation
@override
Future<void> linkDevice({
required model.Session session,
required String deviceId,
Map<String, String>? vars,
}) async {
final res = await _api.v2AccountLinkDevicePost(
body: ApiAccountDevice(id: deviceId, vars: vars),
);
if (!res.isSuccessful) throw Exception('Linking failed.');
}