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
- Not allowed permission to upsert a prese...
```js const presenceID = ID.unique(); setPID(presenceID); const presence = await presences.upsert({ presenceId: presenceID, status: "online"...
- Finding job
Hi. I am a full-stack developer with experience in developing scalable and user-friendly web applications. I handle both front-end and back-end development, im...
- CDN not delivering correct bundle
My site 69b4cd410035893573dc is not delivering the latest deployed version via CDN, it seems stuck on versions from previoiu days, alternative links for the lat...