mpociot / chatgpt-vscode

A VSCode extension that allows you to use ChatGPT
4.99k stars 365 forks source link

"This browser or app may not be secure" when logging in [with potential fix] #6

Open timkmecl opened 1 year ago

timkmecl commented 1 year ago

When trying to log in with Google, I got a warning "This browser or app may not be secure". Therefore I couldn't sign in. The source of this issue is not in this repo, but in the chatgpt-api repo.

They avoid the problem in v1.0.0 of the chatgpt-api, which uses a session token from https://chat.openai.com to authenticate. I tried upgrading this code to use the new version (session cookie is passed to the extension from vscode settings) and it now works.

Checkout https://github.com/timkmecl/chatgpt-vscode (to just install the extension without compiling see Releases)

gabkk commented 1 year ago

Up, @timkmecl fork works like a charm

ljrahn commented 1 year ago

I really like your fork @timkmecl. I dont have experience creating vscode extensions so im not really sure how to do it, but can i suggest adding a feature to allow follow up requests? I like being able to ask a question, then ask follow up questions

timkmecl commented 1 year ago

Thank you! @lucasrahn09: I am currently working on this actually. At the time of my extension's last update, chatgpt-api didn't support this functionality yet, however from v2.0 on it does. Hopefully it will be implemented in my fork by tomorrow, I will post an update then.

timkmecl commented 1 year ago

I really like your fork @timkmecl. I dont have experience creating vscode extensions so im not really sure how to do it, but can i suggest adding a feature to allow follow up requests? I like being able to ask a question, then ask follow up questions

This feature is now implemented in my fork.