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
- Site deployment keeps getting failed
Hi good folks, need a hand with Sites deploy Error on every deploy: Synchronous function execution timed out... duration doesn't exceed 30 seconds [exact log ...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...
- trying to figure out how to activate my...
please help