algoliasearch-client-javascript
algoliasearch-client-javascript copied to clipboard
getSecuredApiKeyRemainingValidity is not available in browser bundle
I am trying to implement automatic key refresh using getSecuredApiKeyRemainingValidity but the function only exported in the node bundle.
Would you accept a PR to make getSecuredApiKeyRemainingValidity work in the browser?
Officially this module still supports down to IE11, but as the method would be newly added to browser bundles I think it should be ok. What method do you have in mind that's isomorphic?
Depending on what Node versions you support atob landed as a global in v16 https://github.com/nodejs/node/pull/37786 and is compatible back to IE10.