Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/honest-pears-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@clerk/clerk-react": patch
"@clerk/vue": patch
"@clerk/astro": patch
---

Fixed missing API keys props within `<UserButton />`
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import type { UserButtonProps, UserProfileProps, Without } from '@clerk/types';

type Props = Without<UserButtonProps, 'userProfileProps'> & {
userProfileProps?: Pick<UserProfileProps, 'additionalOAuthScopes' | 'appearance'>;
userProfileProps?: Pick<UserProfileProps, 'additionalOAuthScopes' | 'appearance' | 'apiKeysProps'>;
/**
* If you have more than one UserButton on a page, providing a custom ID is required
* to properly scope menu items to the correct button.
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/uiComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type UserButtonPropsWithoutCustomPages = Without<
UserButtonProps,
'userProfileProps' | '__experimental_asStandalone'
> & {
userProfileProps?: Pick<UserProfileProps, 'additionalOAuthScopes' | 'appearance'>;
userProfileProps?: Pick<UserProfileProps, 'additionalOAuthScopes' | 'appearance' | 'apiKeysProps'>;
/**
* Adding `asProvider` will defer rendering until the `<Outlet />` component is mounted.
*
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/types/clerk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,7 @@ export type UserButtonProps = UserButtonProfileMode & {
* Specify options for the underlying <UserProfile /> component.
* e.g. <UserButton userProfileProps={{additionalOAuthScopes: {google: ['foo', 'bar'], github: ['qux']}}} />
*/
userProfileProps?: Pick<UserProfileProps, 'additionalOAuthScopes' | 'appearance' | 'customPages'>;
userProfileProps?: Pick<UserProfileProps, 'additionalOAuthScopes' | 'appearance' | 'customPages' | 'apiKeysProps'>;

/*
* Provide custom menu actions and links to be rendered inside the UserButton.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useUserProfileCustomPages } from '../../../utils/useCustomPages';
import { useUserButtonCustomMenuItems } from '../../../utils/useCustomMenuItems';

type Props = Omit<UserButtonProps, 'userProfileProps' | 'customMenuItems'> & {
userProfileProps?: Pick<UserProfileProps, 'additionalOAuthScopes' | 'appearance'>;
userProfileProps?: Pick<UserProfileProps, 'additionalOAuthScopes' | 'appearance' | 'apiKeysProps'>;
};
const props = defineProps<Props>();

Expand Down
Loading