How to change the currently logged user? #45

Closed
opened 2026-02-13 17:27:43 -06:00 by mirrors · 7 comments
Owner

Originally created by @eriksonssilva on GitHub (Apr 2, 2025).

Hello!
First of all, thanks A MILLION for this project. I really appreciate!
I'd like to know if there's a way to point the user it should use?
I mean, I have some google accounts logged on my browser, but I would like to pick a specific one...
I have tried getting the cookies with all other users logged out and also used browser-cookie3, but no avail.

Thanks a lot in advance!

Originally created by @eriksonssilva on GitHub (Apr 2, 2025). Hello! First of all, thanks A MILLION for this project. I really appreciate! I'd like to know if there's a way to point the user it should use? I mean, I have some google accounts logged on my browser, but I would like to pick a specific one... I have tried getting the cookies with all other users logged out and also used browser-cookie3, but no avail. Thanks a lot in advance!
Author
Owner

@HanaokaYuzu commented on GitHub (Apr 2, 2025):

You can start a new session with browser's incognito mode to get fresh cookies. Don't log out manually after copying cookies, just close the incognito window and you should be fine.

@HanaokaYuzu commented on GitHub (Apr 2, 2025): You can start a new session with browser's incognito mode to get fresh cookies. Don't log out manually after copying cookies, just close the incognito window and you should be fine.
Author
Owner

@eriksonssilva commented on GitHub (Apr 2, 2025):

Ok, I'll try that.
But then that means I can't use the "browser-cookie3"?

@eriksonssilva commented on GitHub (Apr 2, 2025): Ok, I'll try that. But then that means I can't use the "browser-cookie3"?
Author
Owner

@HanaokaYuzu commented on GitHub (Apr 2, 2025):

Have you tried browse-cookie3 before logging out? Basically logging out will deactivate your saved cookies no matter how many active accounts there used to be.

@HanaokaYuzu commented on GitHub (Apr 2, 2025): Have you tried browse-cookie3 before logging out? Basically logging out will deactivate your saved cookies no matter how many active accounts there used to be.
Author
Owner

@linfangjian01 commented on GitHub (Jun 24, 2025):

hi! I'd like to know if I have multiple accounts and use incognito/private mode to obtain cookies for each, and then close the browser, how can I prevent the cookies from needing to be refreshed when I deploy a script for a service?

@linfangjian01 commented on GitHub (Jun 24, 2025): hi! I'd like to know if I have multiple accounts and use incognito/private mode to obtain cookies for each, and then close the browser, how can I prevent the cookies from needing to be refreshed when I deploy a script for a service?
Author
Owner

@HanaokaYuzu commented on GitHub (Jun 28, 2025):

@linfangjian01 Just take them down somewhere and create multiple GeminiClient separately.

client1 = GeminiClient(cookie1)
client2 = GeminiClient(cookie2)

await client1.init()
await client2.init()
@HanaokaYuzu commented on GitHub (Jun 28, 2025): @linfangjian01 Just take them down somewhere and create multiple `GeminiClient` separately. ```python client1 = GeminiClient(cookie1) client2 = GeminiClient(cookie2) await client1.init() await client2.init() ```
Author
Owner

@linfangjian01 commented on GitHub (Jul 2, 2025):

I'm encountering a '502 Bad Gateway' error. I successfully deployed it and it worked for about half a day, but now requests aren't going through. Any advice on how to troubleshoot this? Thanks for your help.

@linfangjian01 commented on GitHub (Jul 2, 2025): I'm encountering a '502 Bad Gateway' error. I successfully deployed it and it worked for about half a day, but now requests aren't going through. Any advice on how to troubleshoot this? Thanks for your help.
Author
Owner

@HanaokaYuzu commented on GitHub (Jul 4, 2025):

@linfangjian01 Fixed in v1.14.1.

@HanaokaYuzu commented on GitHub (Jul 4, 2025): @linfangjian01 Fixed in v1.14.1.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mirrors/Gemini-API#45
No description provided.