Oauth Github works, Google redirects to sign in page but on refresh the user is logged in & created
- 0
- Auth
- Web
I am new to appwrite the email sign in and github went pretty smooth. Between the docs and some youtube I pieced it together. When I added Google it keeps redirecting to the signin page, but when I refresh it brings up the dashboard. The user is created and everything looks good.
I made the mistake of seeing if Claude could find the problem and it went a little crazy, I'll prob revert those changes and start over. I'm not sure if Google login is messing up because I have it on localhost or if I made a bigger mistake. I thought maybe the cookies weren't coming back fast enough and the middleware was redirecting.
If you can point me in the right direction I would greatly appreciate it, thank you.
server/appwrite
https://github.com/djneill/money-guardian/blob/main/src/lib/server/appwrite.ts
middleware (AI infected)
https://github.com/djneill/money-guardian/blob/main/src/middleware.ts
api/routes (AI infected
https://github.com/djneill/money-guardian/blob/main/src/app/api/oauth/route.ts
auth
https://github.com/djneill/money-guardian/blob/main/actions/auth.ts
Recommended threads
- Server Down
Appwrite services are down. When will they start working again?
- Looking for a Partner
- Need help to create a wrapper which let ...
I’m looking for help setting up Appwrite properly on a VPS so I can build a self-hosting wrapper around it. The goal is to provide a Linux executable that allow...