Skip to content

Commit

Permalink
Add setCookie method to API client
Browse files Browse the repository at this point in the history
- Implemented setCookie method to manually update the API cookie
- Allows dynamic setting of the cookie value post-construction
  • Loading branch information
pheise committed Jul 3, 2024
1 parent fd72cd5 commit e538331
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/domrobot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ export class ApiClient {
public getCookie(): string {
return this.cookie;
}

public setCookie(cookie: string) {
this.cookie = cookie;
}
}

/**
Expand Down

0 comments on commit e538331

Please sign in to comment.