trypear / pear-landing-page

Landing page for PearAI, the Open Source AI Code Editor
https://trypear.ai
Apache License 2.0
65 stars 87 forks source link

Create https://auth.trypear.ai site for pearai-app to login from #187

Closed nang-dev closed 2 months ago

nang-dev commented 3 months ago

Description

There is an issue with how we handle sessions between the landing-page and the app. They share the same session. This is problematic because:

Screenshot 2024-07-30 at 5 38 16 PM

So, let's use a different login flow just for the app (separate from the landing page's session, which can view settings on the landing page). This will be almost exactly like the signin page. The app, when trying to login, will hit:

https://auth.trypear.ai/signin-app?callback=pearai://pearai.pearai/auth

This is like a popup to sign in

nang-dev commented 2 months ago

Resolved!