Skip to content

Commit 72ad4a4

Browse files
Miriadresearch
andcommitted
feat: add getCookieHeader() to NotebookLM client for authenticated downloads
Co-authored-by: research <research@miriad.systems>
1 parent 5abfb59 commit 72ad4a4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/services/notebooklm/client.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ export class NotebookLMClient {
9696
return new NotebookLMClient(auth);
9797
}
9898

99+
/**
100+
* Get the raw cookie header string for authenticated fetch calls.
101+
* Useful for downloading auth-gated resources (e.g., infographic images).
102+
*/
103+
getCookieHeader(): string {
104+
return this.auth.cookieHeader;
105+
}
106+
99107
// -------------------------------------------------------------------------
100108
// Internal RPC helper
101109
// -------------------------------------------------------------------------

0 commit comments

Comments
 (0)