Packages

@clerk/astro

4.1.27 · 18 Nov 2026MIT46.5k / weekRepositoryHomepagenpmAtom feed

Your version

2.10.0

26 Jun 2025Where it was published

2.17.18 is the newest release of 2.x.

In short

1 new3 internal

Security

3 advisories affect 2.10.0; 2.17.11 fixes them

Release note

Minor Changes

  • Introduce feature or plan based authorization

Plan

```html
<Protect plan="my-plan" />
```

Feature

```html
<Protect feature="my-feature" />
```

Scoped per user or per org

```html
<Protect feature="org:my-feature" />
<Protect feature="user:my-feature" />
<Protect plan="org:my-plan" />
<Protect plan="user:my-plan" />
```

useAuth() in React

Plan

```ts
const { has } = useAuth();
has({ plan: 'my-plan' });
```

Feature

```ts
const { has } = useAuth();
has({ feature: 'my-feature' });
```

Scoped per user or per org

```ts
const { has } = useAuth();

has({ feature: 'org:my-feature' });
has({ feature: 'user:my-feature' });
has({ plan: 'user:my-plan' });
has({ plan: 'org:my-plan' });
```

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.