For some context, I'm a beginner that is trying to figure out how to work with appwrite and oauth2 and I'd appreciate any help I can get. I'm currently trying to create a backend function that I could later schedule with Cron that can automate certain things. However, to do this, I believe I need to get the user's refreshToken and store it in the database, as appwrite currently only allows you to refresh your access token when the user is signed into the app, and not while a scheduled function is occurring. The current issue I have is that google is giving me a blank string for the providerRefreshToken whenever I try and go through the OAuth process. I've tried resetting permissions to the website on my google account and also trying fresh google accounts that've never interacted with my code before, yet it still never gives me a refresh token that I can store. The following is my main ui code (just a simple login with google + display name). After a user logs in, I've made a function that takes that signup alert and simply prints the google response, yet the refreshToken is always blank. Attached is my main ui code.
Recommended threads
- Google Auth not working in a React App
Authentication with Google has failed. It redirects back to the signin route in React. Attached screenshots for configuration of Google console and Appwrite Go...
- Dokploy docker compose
Hey guys hope y'all doing well, I was wondering if anyone could share a working 1.8.0 docker-compose that works with Dokploy I tried making it but it just does...
- Status 400 on oauth
Hello, I am getting status 400 on oauth login via google (redirect_uri_mismatch), same with Apple oauth. Is there any issues with oauth authorization currently...