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
You could implement caching the API access token using unjs/unstorage. This allows all intances of the Mpesa client to chack the same pool of memory, for the key. Also, it allows for different storage techniques, i.e. redis, localstorage, indexDb etc. If a site is running on different containers, unstorage can be used cleverly to ensure parity.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
You could implement caching the API access token using unjs/unstorage. This allows all intances of the Mpesa client to chack the same pool of memory, for the key. Also, it allows for different storage techniques, i.e. redis, localstorage, indexDb etc. If a site is running on different containers, unstorage can be used cleverly to ensure parity.
I've had success with it in my fork.
Beta Was this translation helpful? Give feedback.
All reactions