unlink method

Future<UserIdResponse> unlink()

KO: 연결 끊기
EN: Unlink

Implementation

Future<UserIdResponse> unlink() async {
  return ApiFactory.handleApiError(() async {
    Response response = await _dio.post(Constants.v1UnlinkPath);
    await TokenManagerProvider.instance.manager.clear();
    return UserIdResponse.fromJson(response.data);
  });
}