Social Auth throwing 500 error's
When i user tries to login using OTP it works fine and returns success however if a user tries to login using social auth (google or microsoft) it fails (throwing a 500 status code) there is not logs relating to auth errors though and everything looks correct. Social auth logins did work at some point and has started to fail.
I am using the auth client on my api using Hono and cloudflare workers and my frontend is using nextjs
please see the attached files or these links here:
- index.ts: https://github.com/jacobsamo/BuzzTrip/blob/a63a96a60c453c769b66a3ea9016681661f5f4bf/apps/api/src/index.ts
- routes/auth: https://github.com/jacobsamo/BuzzTrip/blob/a63a96a60c453c769b66a3ea9016681661f5f4bf/apps/api/src/routes/auth/index.ts
- auth client: https://github.com/jacobsamo/BuzzTrip/blob/a63a96a60c453c769b66a3ea9016681661f5f4bf/apps/api/src/common/auth.ts
the repo/ branch for auth: https://github.com/jacobsamo/BuzzTrip/tree/feat/rewrite-api
GitHub
BuzzTrip/apps/api/src/common/auth.ts at a63a96a60c453c769b66a3ea901...
Plan the trip you've always dreamed of. Contribute to jacobsamo/BuzzTrip development by creating an account on GitHub.
GitHub
GitHub - jacobsamo/BuzzTrip at feat/rewrite-api
Plan the trip you've always dreamed of. Contribute to jacobsamo/BuzzTrip development by creating an account on GitHub.
Solution:Jump to solution
Turns out my db wasn't running for some reason and it wasn't erroring out which is super weird oh well fixed now.
1 Reply
Solution
Turns out my db wasn't running for some reason and it wasn't erroring out which is super weird oh well fixed now.