DavidFeng
DavidFeng
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!
16 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?
16 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
16 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?
16 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)
16 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
16 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 😭
16 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