kart7990 / virtualpitwall

https://staging.virtualpitwall.com
Other
15 stars 7 forks source link

Sign in with Google fails when running locally #2

Closed elft3r closed 6 months ago

elft3r commented 6 months ago

Hey, I was trying out the code and wanted to run it locally. I started the development.env setting with npm start. However, when I want to Sign in, using my Google Account, I get the following error message:

Screenshot 2023-12-22 at 12 29 36

Looking at the network calls, I see the following error message:

Screenshot 2023-12-22 at 12 34 44

Would you happen to know what's wrong and what I need to do to make this work?

Thanks for your help, Jochen

kart7990 commented 6 months ago

The database needs to wake up. It goes to sleep after 1 hour of inactivity. Should take less than a minute to spin up after the first request. Eventually I'll move it off the low tier offering.

Also, I've got the itch to develop this a bit more. Working on a V2 version, branch is v2/shadcnui.

David

On Fri, Dec 22, 2023, 5:38 AM Jochen Zehnder @.***> wrote:

Hey, I was trying out the code and wanted to run it locally. I started the development.env setting with npm start. However, when I want to Sign in, using my Google Account, I get the following error message: Screenshot.2023-12-22.at.12.29.36.png (view on web) https://github.com/kart7990/virtualpitwall/assets/2915576/779aa6a2-242f-4c2b-ac54-3f28cb4cb96c

Looking at the network calls, I see the following error message: Screenshot.2023-12-22.at.12.34.44.png (view on web) https://github.com/kart7990/virtualpitwall/assets/2915576/f2c5b97d-505b-4417-8bdd-6ca4a59e81e3

Would you happen to know what's wrong and what I need to do to make this work?

Thanks for your help, Jochen

— Reply to this email directly, view it on GitHub https://github.com/kart7990/virtualpitwall/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADTFVFLDRCHMVXGVOJJZY7DYKVWMRAVCNFSM6AAAAABA7W26A6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TGOBQGAZTQOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

elft3r commented 6 months ago

Hey David, thanks for your reply. I tried it again, with some waiting period to give the DB time to wake up. But I still get the same error. Could it be, that I first need to register, or should the login do that automatically for me? If so, what would be the way to register?

I'm new to the app and just saw your announcement, that you open-sourced it and wanted to give it a try and see if I can support it in any way.

Also, I've got the itch to develop this a bit more. Working on a V2 version, branch is v2/shadcnui.

I will have a look and give it a try.

Best, Jochen

kart7990 commented 6 months ago

Ah, yeah the wrong google oauth client id was being used which doesn't allow for localhost origins. I just pushed a change to use the dev/test oauth client id.

kart7990 commented 6 months ago

Changes have been deployed and smoke test looks good.

elft3r commented 6 months ago

Thanks David, the changes worked and I'm now able to login when running the app locally.

I will now explore the app and also have a look at the v2 branch to see how I can contribute to it.