Auth Cookie Models
cookie
Cookie-related models
Classes:
-
AppLoginResult–App login cookies.
-
CNWebLoginResult–Web login cookies.
-
CookieLoginResult–Base model for cookie login result.
-
DeviceGrantResult–Cookies returned by the device grant endpoint.
-
GameLoginResult–Game login result.
-
MobileLoginResult–Mobile number login cookies.
-
QRLoginResult–QR code login cookies.
-
StokenResult–Result of fetching
stokenwithfetch_stoken_by_game_token. -
WebLoginResult–Web login cookies.
__all__
module-attribute
__all__ = ['AppLoginResult', 'CNWebLoginResult', 'CookieLoginResult', 'DeviceGrantResult', 'DeviceGrantResult', 'GameLoginResult', 'MobileLoginResult', 'QRLoginResult', 'StokenResult', 'WebLoginResult']
AppLoginResult
pydantic-model
App login cookies.
Returned by client.login_with_app_password.
Fields:
-
stoken(str) -
ltuid_v2(str) -
ltmid_v2(str) -
account_id_v2(str) -
account_mid_v2(str)
CNWebLoginResult
pydantic-model
Web login cookies.
Returned by client.cn_login_with_password.
Fields:
-
cookie_token_v2(str) -
account_mid_v2(str) -
account_id_v2(str) -
ltoken_v2(str) -
ltmid_v2(str) -
ltuid_v2(str)
CookieLoginResult
pydantic-model
DeviceGrantResult
pydantic-model
Cookies returned by the device grant endpoint.
Fields:
-
game_token(str) -
login_ticket(Optional[str])
Validators:
-
_str_to_none
GameLoginResult
pydantic-model
Game login result.
Fields:
-
combo_id(str) -
open_id(str) -
combo_token(str) -
heartbeat(bool) -
account_type(int)
MobileLoginResult
pydantic-model
Mobile number login cookies.
Returned by client.login_with_mobile_number.
Fields:
-
cookie_token_v2(str) -
account_mid_v2(str) -
account_id_v2(str) -
ltoken_v2(str) -
ltmid_v2(str)
QRLoginResult
pydantic-model
QR code login cookies.
Returned by client.login_with_qrcode.
Fields:
-
cookie_token_v2(str) -
account_mid_v2(str) -
account_id_v2(str) -
ltoken_v2(str) -
ltmid_v2(str) -
ltuid_v2(str)
StokenResult
pydantic-model
WebLoginResult
pydantic-model
Web login cookies.
Returned by client.login_with_password.
Fields:
-
cookie_token_v2(str) -
account_mid_v2(str) -
account_id_v2(str) -
ltoken_v2(str) -
ltmid_v2(str) -
ltuid_v2(str)