verify()
Verifies the given API key.
- 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.
Returns the verified APIKey object.
function verify(secret: string): Promise<APIKey>- Name
secret- Type
string- Description
The secret of the API key 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