logto-io / js

🤓 Logto JS SDKs.
https://docs.logto.io/quick-starts/
MIT License
61 stars 40 forks source link

fix(client): fix memoize cache key #712

Closed wangsijie closed 5 months ago

wangsijie commented 5 months ago

fixed #771

Summary

Fix the bug of granting mutiple organization tokens concurrently.

The function getAccessToken is memoized by arguments, but the memorize function will only take the first argument as the cache key, change to take all arguments.

Testing

Local tested.

Checklist