verify()
Verifies an API key secret. 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<APIKey>- Name
secret- Type
string- Description
The API key secret to verify.
const apiKey = await clerkClient.apiKeys.verify('ak_live_xxx')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