mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 12:27:44 +00:00
docs: remove userId parameter from API key documentation
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user