Skip to content

Commit b68d739

Browse files
committed
explain scoping between org and users and add vue example
1 parent e485ec6 commit b68d739

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/components/api-keys.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ description: Clerk's <APIKeys /> component for managing API keys.
55

66
The `<APIKeys />` component is used to manage API keys for your application. It allows you to create, edit, and revoke API keys for your application.
77

8+
The component automatically manages API keys based on the user's current context. When the user has an active organization selected, all operations are scoped to that organization. Otherwise, operations are user-scoped.
9+
810
To utilize the `<APIKeys />` component, you must first enable API keys in the Clerk Dashboard.
911

1012
> [!WARNING]
@@ -46,7 +48,7 @@ All props are optional.
4648

4749
The following example includes a basic implementation of the `<APIKeys />` component. You can use this as a starting point for your own implementation.
4850

49-
<Tabs items={["Next.js", "React", "React Router", "TanStack React Start"]}>
51+
<Tabs items={["Next.js", "React", "React Router", "TanStack React Start", "Vue"]}>
5052
<Tab>
5153
```tsx {{ filename: 'app/api-keys/page.tsx' }}
5254
import { APIKeys } from '@clerk/nextjs'
@@ -91,6 +93,18 @@ The following example includes a basic implementation of the `<APIKeys />` compo
9193
}
9294
```
9395
</Tab>
96+
97+
<Tab>
98+
```vue {{ filename: 'api-keys.vue' }}
99+
<script setup lang="ts">
100+
import { APIKeys } from '@clerk/vue'
101+
</script>
102+
103+
<template>
104+
<APIKeys />
105+
</template>
106+
```
107+
</Tab>
94108
</Tabs>
95109

96110
<If sdk="js-frontend">

0 commit comments

Comments
 (0)