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
- SMS OTP not delivered to Australian (+61...
Hey team! I'm having an issue with SMS OTP delivery to Australian phone numbers in my Appwrite Cloud project. What's happening: account.createPhoneToken() co...
- Deploying to Sites will not work. NextJS
It’s been many times I have attempted to deploy to Appwrite and it’s always failed. The deployment itself works, the logs show it works perfectly, however when ...
- OAuth provider credentials reverting [CR...
Hi team, I’m experiencing repeated OAuth configuration resets in my Appwrite project. ## Issue 1 – Google OAuth credentials reverting * I configure my own Goog...