You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a question about token cached. as we know, The access/refresh_token has an expiration date, do u use redis or other in token cached? such as if token has expired, program will listen to the expired information of Redis and then update the token with refresh_token.
In the initial design concept, we hope to keep python-shopee as light as possible, so we didn't include the Redis solution in the cache mechanism. However, I think we can just reinitialize the client instance to get the token update again.
Thank you for your reply, but if refresh_token has expired and not reacquired within 30 days , user just need to re-authorized shop, this is very bad in the user experience.
Activity
JimCurryWang commentedon Aug 15, 2022
Hi @The-Wong ,
In the initial design concept, we hope to keep python-shopee as light as possible, so we didn't include the Redis solution in the cache mechanism. However, I think we can just reinitialize the client instance to get the token update again.
I hope this is helpful.
wangcaohong commentedon Aug 15, 2022
Thank you for your reply, but if refresh_token has expired and not reacquired within 30 days , user just need to re-authorized shop, this is very bad in the user experience.