From b84535b6638a8efeddd2f18ee1111d79247687a6 Mon Sep 17 00:00:00 2001 From: Jack Willis-Craig <4758854+szdc@users.noreply.github.com> Date: Sun, 25 Nov 2018 14:35:00 +1000 Subject: [PATCH] refactor: remove app_type from login request (#55) Removed as it is not sent in v9.1.0 --- src/index.ts | 1 - src/types/login.d.ts | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index 2272983..5dfed84 100644 --- a/src/index.ts +++ b/src/index.ts @@ -80,7 +80,6 @@ export default class TikTokAPI { loginWithUsername = (username: string, password: string) => this.login({ username: encryptWithXOR(username), password: encryptWithXOR(password), - app_type: 'normal', }) /** diff --git a/src/types/login.d.ts b/src/types/login.d.ts index 137ce2b..33535f7 100644 --- a/src/types/login.d.ts +++ b/src/types/login.d.ts @@ -19,9 +19,6 @@ export interface LoginRequest { /** The captcha answer - only required if a captcha was shown */ captcha?: string; - - /** Hard-coded to "normal" */ - app_type?: string; } export interface LoginResponse {