authenticateDevice method
Implementation
Future<bool> authenticateDevice(List<String>? scopes) async {
try {
var success = await Onegini.instance.channel.invokeMethod(
Constants.authenticateDevice, <String, dynamic>{'scope': scopes});
return success ?? false;
} on TypeError catch (error) {
throw PlatformException(
code: Constants.wrapperTypeError.code.toString(),
message: Constants.wrapperTypeError.message,
stacktrace: error.stackTrace?.toString());
}
}