fix(api): Fix authentication

This commit is contained in:
TheOnlyWayUp
2024-06-30 19:41:56 +00:00
parent 1ebd54a0da
commit 4e49550dcc
+1 -1
View File
@@ -36,7 +36,7 @@ async def wp_get_cookies(username: str, password: str) -> dict:
"""
async with ClientSession(headers=headers) as session:
async with session.post(
"https://www.wattpad.com/auth/login?nextUrl=%2F&_data=routes%2Fauth%2Flogin",
"https://www.wattpad.com/auth/login?nextUrl=%2F&_data=routes%2Fauth.login",
data={
"username": username.lower(),
"password": password,