loginByScannedTicket static method

Future<AuthResult> loginByScannedTicket(
  1. String ticket
)

Login by QRCode

Implementation

static Future<AuthResult> loginByScannedTicket(String ticket) async {
  Map map = {};
  map.putIfAbsent('ticket', () => ticket);
  final Result result = await post(
      '/api/v3/exchange-tokenset-with-qrcode-ticket', jsonEncode(map));
  return AuthResult(result);
}