verify()
Verifies an API key secret. Returns an APIKeyResource object.
- If the API key is valid, the method returns the API key object with its properties.
- If the API key is invalid, revoked, or expired, the method will throw an error.
function verify(secret: string): Promise<APIKeyResource>- Name
secret- Type
string- Description
The API key secret to verify.
const apiKeySecret = 'ak_live_123'
const response = await clerkClient.apiKeys.verify(apiKeySecret)Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint POST/api_keys/verify. See the BAPI reference for more information.
Feedback
Last updated on