Github Oauth not working in production
Hey everyone, I have a web app built with SvelteKit, for oauth with github everything works well and as expected in development environment or for localhost app, but things break and in console a 500 (Internal Server Error) logs out, am really not sure why is this happening, I have just followed the instructions from docs as it is, Help would be really appreciated.
I don't know if it requires reproduction, cause there's nothing different going on from the docs steps, its just things dont work in production (Also, I deploy on cloudflare pages.)
6 Replies
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
Thanks, I'll try to see once, will update soon
Hey, I tried once again but its still not working
Your app's auth does work, what's wrong in mine? smh 🙂
Here's my github repo, I have made the repo public so you can have a check on it : https://github.com/Devr-pro/dormster-app
GitHub
GitHub - Devr-pro/dormster-app
Contribute to Devr-pro/dormster-app development by creating an account on GitHub.
here's the deployed url : https://dormster.pages.dev/foo
Click on the signinwgh button and keep console opened, to see the logged error
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
Yes, and I have made all env variables available on both preview and production environment
This is just happening, without any error message or logs
Thanks to all responses, my issue has resolved
Simply by upgrading to latest version of better-auth, everything works fine
I thought I was on latest version, but my bad
Also I dont quite know why this happened
I was on 0.6.2
Sometimes now too the api is inconsistent, it does return 500/503 errors rarely, but it's not like before