linkWithTicket method

Future linkWithTicket({
  1. required String ticket,
})

绑定自定义登录

需传入ticket自定义凭证

Implementation

Future<dynamic> linkWithTicket({required String ticket}) async {
  CloudBaseResponse res = await CloudBaseRequest(core)
      .post('auth.linkWithTicket', {"ticket": ticket});
  print(res);
  if (res.code != null) {
    throw CloudBaseException(code: res.code!, message: res.message);
  }
  return res.data;
}