Noteslify icon indicating copy to clipboard operation
Noteslify copied to clipboard

Fix Github And Google OAuth In Public Version

Open devarshishimpi opened this issue 3 years ago • 6 comments
trafficstars

Github And Google OAuth ENV are asked while deploying the application, but haven't added it on the website

devarshishimpi avatar Sep 09 '22 14:09 devarshishimpi

The website fails to connect with Oauth when the front end is hosted on Vercel and the backend on Heroku/alternatives. Only works locally.

devarshishimpi avatar Sep 16 '22 18:09 devarshishimpi

Hi, @devarshishimpi, I just recently came across this project, this error may be caused because you might not have added your environment variables on your project's dashboard on Vercel (in project settings).

AviAvinav avatar Sep 27 '22 06:09 AviAvinav

Hi, @devarshishimpi, I just recently came across this project, this error may be caused because you might not have added your environment variables on your project's dashboard on Vercel (in project settings).

@AviAvinav Since the environment variable are present as a part of the backend. Vercel doesn't have any environment variables + Frontend based on React so no Environment variables in frontend. All of them have been added to backend hosting like Heroku. Is there some issue with it, a fix to it?

devarshishimpi avatar Sep 27 '22 11:09 devarshishimpi

I am not sure how to fix this in that case, haven't used heroku much.

AviAvinav avatar Sep 28 '22 07:09 AviAvinav

If you can share the hosted link where it is failing, maybe I can check what's wrong

AviAvinav avatar Sep 28 '22 07:09 AviAvinav

If you can share the hosted link where it is failing, maybe I can check what's wrong

Hmm, It works fine and lets us authorize with Github and Google but after which fails at Callback. You can try it by Self Hosting it on Heroku 😄 .

devarshishimpi avatar Sep 28 '22 07:09 devarshishimpi