DavidFeng
WWasp-lang
•Created by DavidFeng on 10/17/2024 in #🙋questions
Google Auth Redirection Not Working (Netlify & AWS)
Hi, thanks for the feedback! I’ve resolved the comments. Would you mind taking a look?
23 replies
WWasp-lang
•Created by DavidFeng on 10/17/2024 in #🙋questions
Google Auth Redirection Not Working (Netlify & AWS)
@martinsos Hi, I have submitted a pull request at https://github.com/wasp-lang/wasp/pull/2347. Let me know what you think!
23 replies
WWasp-lang
•Created by DavidFeng on 10/17/2024 in #🙋questions
Google Auth Redirection Not Working (Netlify & AWS)
The original issue is closed but I think it would make sense in the Docs to explicitly mention to NOT deploy through the Netlify auto deploy on push option on the Netlify website, which seems very tempting since it is a lot less work than typing up a Github Action yml file. This is generally the default option for most people building site there).
If possible, I would like to update the docs myself - I think this project is really cool and am excited to contribute to it! However, I'm not sure if this issue only applies to projects built upon the Open Saas template, or whether it applies to all Wasp projects in general. If I am to update the docs, should I update the docs for the Open Saas project or just for Wasp?
23 replies
WWasp-lang
•Created by DavidFeng on 10/17/2024 in #🙋questions
Google Auth Redirection Not Working (Netlify & AWS)
I was originally building the app on push not through the Netlify CLI's terminal command, but through linking Netlify with the Git Repo and using a hacky deploy command through their web interface on each Git push:
For some reason, this does NOT build the
OAuthCallbackPage
correctly and results in the issue.
The issue is fixed when I switched to using the Netlify CLI's terminal command in Github Actions to deploy. I have uploaded my Github Action file for deploying frontend to https://github.com/wasp-lang/wasp/issues/2344#issuecomment-242181102923 replies
WWasp-lang
•Created by DavidFeng on 10/17/2024 in #🙋questions
Google Auth Redirection Not Working (Netlify & AWS)
Hmm tired to run the built version for front end locally and http://localhost:3000/oauth/callback also brings me to the app or the error page. Seems like there is something wrong with either the router or building the oauth callback page. This bug is quite mysterious so far, not sure what could have gone wrong. Any advice is appreciated!
23 replies
WWasp-lang
•Created by DavidFeng on 10/17/2024 in #🙋questions
Google Auth Redirection Not Working (Netlify & AWS)
@kapa.ai Any thoughts based on the provided context?
23 replies
WWasp-lang
•Created by DavidFeng on 10/17/2024 in #🙋questions
Google Auth Redirection Not Working (Netlify & AWS)
Finally, I looked at the server logs and noticed that in the dev environment, the last get request on the server is server.com/auth/google/callback?state=XXX&prompt=consent, while in the deployed environment the last get request is server.com/auth/google/callback?state=XXX&prompt=none, not sure if that is relevant
23 replies
WWasp-lang
•Created by DavidFeng on 10/17/2024 in #🙋questions
Google Auth Redirection Not Working (Netlify & AWS)
This leads me to hypothesize that the front end code might just be built incorrectly. Does this auth/callback URL correspond to a webhook or a file? (I am new to this so sorry in advance for the dumb question) Any suggestions on how to debug it?
23 replies
WWasp-lang
•Created by DavidFeng on 10/17/2024 in #🙋questions
Google Auth Redirection Not Working (Netlify & AWS)
Additionally, when I try to directly enter https://myapp.netlify.app/oauth/callback, it gives the Netlify “page not exist” error page. When I enter http://localhost:3000/oauth/callback in the local dev environment, however, it brings me to the ai demo app page (if I signed in) or to a error page still with the web app’s nav bar (if I did not sign in)
23 replies
WWasp-lang
•Created by DavidFeng on 10/17/2024 in #🙋questions
Google Auth Redirection Not Working (Netlify & AWS)
Since the issue is happening on a get request to the front end, I am a little bit confused on what’s going on
23 replies
WWasp-lang
•Created by DavidFeng on 10/17/2024 in #🙋questions
Google Auth Redirection Not Working (Netlify & AWS)
@martinsos Thanks for the feedback! I have reloaded several variables and still had no luck. Are there any suggestions to which variables might be problematic? I changed the google auth variables but the same issue is still occurring 😭
23 replies
WWasp-lang
•Created by DavidFeng on 10/14/2024 in #🙋questions
Blank Page when Create New App
Update: It was the browser extension! Incognito mode worked just fine and everything was fixed after I removed the Chrome Extension. The DB was running normally and there were no error (or abnormal logs) from the Chrome developer console.
10 replies