Closed macnibblet closed 1 month ago
Hi @macnibblet , thanks for trying the SDK, I'd like to first understand why you want to cache the client and how long you intend to use the cached client? Best practice for security reasons requires tokens to expire and re-authentication to be done. I would suggest you create a refresh token function and call it when you get the error,
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
Given the following function where we cache the creation of the client to avoid re-creating the client for each request we do to the graph we are getting the following error and there is nothing we can do about it.
The error we are experiencing