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
- Project auto-blocked after load testing ...
Hi team π My project has been automatically blocked with the message: "Project is currently blocked β Access to this project is restricted. Contact support if...
- App build crashing with "Internal error"
Hello Appwrite team! π We are trying to deploy a Next.js application on Appwrite Cloud, but our builds are consistently failing. The deployment log successful...
- TEAM INVITE
There is a problem with the team invitation. When a user invites other users, that time, the newly created email address they don't get the invite link and old ...