trypear / pearai-app

An Open Sourced AI-Powered Text Editor. A fork of VSCode and Continue.
https://trypear.ai
Other
528 stars 86 forks source link

Sign in and save auth functionality on App #120

Closed nang-dev closed 10 hours ago

nang-dev commented 1 month ago

Users will create an account on the landing page. they should be able to sign in on the app if they use the api we host

After they sign in, their ID (+ whatever else is needed to be passed to the pearai-server) Must be saved to the 'context.GlobalState' in the pearai-app, and passed in with every request to pearai-server

This is for the backend functionality within the code editor to sign in #119 is the ui/ux

This API should also return the subscription details of the user.

This is different from the landing page sign in flow.

nang-dev commented 1 week ago

OKAY progress:

https://github.com/trypear/pearai-submodule/tree/server2

Server2 branch.

(run by doing to the debug thing in vscode and clicking here)

Image

you can try *command pallette -> pearai: debug to get a link to use

pretty much, we want

code-oss://pearai/hi (in chrome)

to open and get registered by the extension.

for now it opens code-oss, but is not registered by pearai becuase pearai is not exactly an extension?, like its not in the extension tab in vscode

maybe.

but it currently doesnt work. it should open a popup in the bottom right if it did.

my last idea was to run it in the main app (with code.sh command) and see if that triggered it. it ran into issues. good luck soldier

@Zhethan