Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shiqiyue committed Jun 14, 2022
1 parent abf4132 commit 000ac40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shiqiyue-linkedin-private-api",
"version": "1.1.21",
"version": "1.1.22",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/core/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export class Client {

myProfile?: Profile;

li_at?: string;

constructor({ proxy,httpAgent, httpsAgent,decorationIds }: ClientOpts = {}) {
this.request = new LinkedInRequest({ proxy,httpAgent, httpsAgent,decorationIds });
}
Expand Down
1 change: 1 addition & 0 deletions src/core/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export class Login {
}

this.setRequestHeaders({ cookies });
this.client.li_at = cookies.li_at

if (username) {
//fs.writeFile(SESSIONS_PATH, JSON.stringify({ ...cachedSessions, [username]: cookies }));
Expand Down

0 comments on commit 000ac40

Please sign in to comment.