@@ -3,9 +3,9 @@ import type { CheckAuthorizationWithCustomPermissions } from './session';
33import type { Autocomplete } from './utils' ;
44
55/**
6- * Props for the `<Protect />` component, which restricts access to its children based on authentication and authorization .
6+ * Authorization parameters used by `<Protect />` and `auth.protect()` .
77 *
8- * Use `ProtectProps ` to specify the required role, permission, feature, or plan for access.
8+ * Use `ProtectParams ` to specify the required role, permission, feature, or plan for access.
99 *
1010 * @example
1111 * ```tsx
@@ -22,10 +22,10 @@ import type { Autocomplete } from './utils';
2222 * <Protect feature="a_feature_key" />
2323 *
2424 * // Require a specific plan
25- * <Protect plan=a_plan_key" />
25+ * <Protect plan=" a_plan_key" />
2626 * ```
2727 */
28- export type ProtectProps =
28+ export type ProtectParams =
2929 | {
3030 condition ?: never ;
3131 role : OrganizationCustomRoleKey ;
@@ -69,6 +69,11 @@ export type ProtectProps =
6969 plan ?: never ;
7070 } ;
7171
72+ /**
73+ * @deprecated Use {@link ProtectParams} instead.
74+ */
75+ export type ProtectProps = ProtectParams ;
76+
7277/**
7378 * Authorization condition for the `when` prop in `<Show />`.
7479 * Can be an object specifying role, permission, feature, or plan,
0 commit comments