
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
- Subject: Persistent 403 Forbidden Error ...
Problem Description: I am developing a web application where users can upload and then view images. While file uploads are working correctly (after resolving in...
- Error setting postman body
Good evening, anyone has an idea on how to pass body to appwrite function using postman? this is how I've passed it : { "providerName": "adamu" } and I ke...
- Attributes stuck at processing
Added some attributes to my collection, and they are stuck in processing for over half an hour. Project ID: 684d0539002c85ded9c5
