Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example Electron App out of date #808

Closed
mluogh opened this issue Mar 19, 2024 · 2 comments
Closed

Example Electron App out of date #808

mluogh opened this issue Mar 19, 2024 · 2 comments
Assignees

Comments

@mluogh
Copy link

mluogh commented Mar 19, 2024

I followed all the instructions given here

However, when I try to login using the Google auth, I get an error:

GET http://localhost:3000/auth/callback/google?state=eyJzdGF0ZSI6ImI5YTQwY2NmMDExODRiYzUyMTA2ZSJ9&code=4%2F0AeaYSHDygHXmetG6eUwQVrHXcy3ow3rKNUSXou_i-7Tpt1D98dJxAe0xm7GVE8cUUJVSaQ&scope=email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+openid&authuser=0&prompt=none 
image

My understanding is that the desired flow is Electron -> Google -> API Server (localhost:3001) --[Deeplink to Electron]--> Electron, but from the error, it seems like we get Electron -> Google -> localhost:3000 ?

@DBozhinovski DBozhinovski self-assigned this Mar 19, 2024
@DBozhinovski
Copy link
Contributor

I'm getting something similar, but not the same:
Screenshot from 2024-03-28 16-23-08

In any case, the demo is not working as expected, so I'll take a look.

@rishabhpoddar
Copy link
Member

rishabhpoddar commented Apr 18, 2024

The example app has been fixed. The issue was that the frontend SDK was creating an authorization url (to google) which pointed to localhostL3000 instead of localhost:3001. So google redirected to localhost:3000, instead of 3001.

Have a look at the PR linked to this issue for the required code change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants