When a secured API keys expire, search breaks. The current workaround is more complex
than it needs to be.
The options for developers using Algolia require, at every place where a search
operation is performed, catching an operation error, identify it as a
"ValidUntil" error, then regenerate the API key, and perform the search
operation again.
The idea is to define a method which tells if a SecuredAPIKey
is expired or not without making a single call to Algolia's API.
Summary
When a secured API keys expire, search breaks. The current workaround is more complex than it needs to be.
The options for developers using Algolia require, at every place where a search operation is performed, catching an operation error, identify it as a "ValidUntil" error, then regenerate the API key, and perform the search operation again.
The idea is to define a method which tells if a
SecuredAPIKey
is expired or not without making a single call to Algolia's API.References