@lightcone-ai/daemon 0.15.6 → 0.15.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/browser-login.js +6 -3
package/package.json
CHANGED
package/src/browser-login.js
CHANGED
|
@@ -64,9 +64,12 @@ export const PLATFORM_CONFIGS = {
|
|
|
64
64
|
},
|
|
65
65
|
},
|
|
66
66
|
kuaishou: {
|
|
67
|
-
//
|
|
68
|
-
//
|
|
69
|
-
|
|
67
|
+
// Go directly to the passport login page (skip the cp.kuaishou.com intro page which
|
|
68
|
+
// requires an extra "立即登录" click before the actual login form appears).
|
|
69
|
+
// callback brings the user back to cp.kuaishou.com/profile after login.
|
|
70
|
+
loginUrl: 'https://passport.kuaishou.com/pc/account/login/?sid=kuaishou.web.cp.api&callback=https%3A%2F%2Fcp.kuaishou.com%2Frest%2Finfra%2Fsts%3FfollowUrl%3Dhttps%253A%252F%252Fcp.kuaishou.com%252Fprofile%26setRootDomain%3Dtrue',
|
|
71
|
+
// Empty array enables _switchToQrLogin() which falls through to text-match "扫码登录".
|
|
72
|
+
qrTabSelector: [],
|
|
70
73
|
getSessionValue: (cookies) => cookies.find(c => c.name === 'passToken')?.value ?? null,
|
|
71
74
|
isLoggedIn: (cookies, baseline) => {
|
|
72
75
|
const val = cookies.find(c => c.name === 'passToken')?.value ?? null;
|