docs: remove userId parameter from API key documentation

This commit is contained in:
Bereket Engida
2025-03-03 13:16:12 +03:00
parent b0d2c081b8
commit 38384feebf

View File

@@ -173,7 +173,6 @@ const { valid, error, key } = await auth.api.verifyApiKey({
#### Properties #### Properties
- `key`: The API Key to validate - `key`: The API Key to validate
- `userId`: The user id to check against the API key.
- `permissions`?: The permissions to check against the API key. - `permissions`?: The permissions to check against the API key.
#### Result #### Result
@@ -196,7 +195,6 @@ type Result = {
const key = await auth.api.getApiKey({ const key = await auth.api.getApiKey({
body: { body: {
keyId: "your_api_key_id_here", keyId: "your_api_key_id_here",
userId: "userId",
}, },
}); });
``` ```
@@ -204,7 +202,6 @@ const key = await auth.api.getApiKey({
#### Properties #### Properties
- `keyId`: The API Key id to get information on. - `keyId`: The API Key id to get information on.
- `userId`: The user id to check against the API key.
#### Result #### Result