In the Appwrite docs it says: (https://appwrite.io/docs/products/auth/oauth2)
OAuth 2 sessions expire to protect from security risks. OAuth 2 sessions should be refreshed periodically, so access tokens don't expire. **Check value of providerAccessTokenExpiry to know if the token is expired or is about to expire. Refreshing before every request might cause rate limit problems. You can do this by calling the Update OAuth Session endpoint when ever your user visits your app.
**
I'm using Nextjs btw.
const promise = account.updateSession('[SESSION_ID]');
Where should I call updateSession ?
Can you please explain how to do it, is there any code example ? Thank you :appwriteheart:
Recommended threads
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...
- Function issue
Hi,idk whats wrong with my function but i made some changes to the env var and made sure they saved then i redeployed it,but then after it redeeployed it asked ...
- Function issue
Hi,idk whats wrong with my function but i made some changes to the env var and made sure they saved then i redeployed it,but then after it redeeployed it asked ...