Class for handling API key authentication.
Constructor for creating an instance of a class with an API key and crypto object.
The API key to be used for authentication.
The crypto object for encryption and decryption.
None
Optional
Authenticates the user by decrypting the API key token and checking its validity.
A promise that resolves to true if authentication is successful, or a ResponseErrorType object if authentication fails.
Class for handling API key authentication.