Skip to content

Commit a8df90c

Browse files
authored
Merge branch 'main' into jaredpiedt/webhook-event-attributes
2 parents cd2ea92 + 6200c5e commit a8df90c

File tree

277 files changed

+4191
-1339
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

277 files changed

+4191
-1339
lines changed

.changeset/chatty-fishes-speak.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/chilly-pears-film.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/chubby-pumas-sink.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/cold-turtles-press.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/common-beers-read.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/cool-geckos-stick.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
'@clerk/astro': minor
3+
---
4+
5+
Introduce feature or plan based authorization
6+
7+
## `<Protect />`
8+
9+
### Plan
10+
11+
```html
12+
<Protect plan="my-plan" />
13+
```
14+
15+
### Feature
16+
17+
```html
18+
<Protect feature="my-feature" />
19+
```
20+
21+
### Scoped per user or per org
22+
23+
```html
24+
<Protect feature="org:my-feature" />
25+
<Protect feature="user:my-feature" />
26+
<Protect plan="org:my-plan" />
27+
<Protect plan="user:my-plan" />
28+
```
29+
30+
## `useAuth()` in React
31+
32+
### Plan
33+
34+
```ts
35+
const { has } = useAuth()
36+
has({ plan: "my-plan" })
37+
```
38+
39+
### Feature
40+
41+
```ts
42+
const { has } = useAuth()
43+
has({ feature: "my-feature" })
44+
```
45+
46+
### Scoped per user or per org
47+
48+
```ts
49+
const { has } = useAuth()
50+
51+
has({ feature: "org:my-feature" })
52+
has({ feature: "user:my-feature" })
53+
has({ plan: "user:my-plan" })
54+
has({ plan: "org:my-plan" })
55+
```

.changeset/curly-dots-stand.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.changeset/easy-papers-hug.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/dev-cli': patch
3+
---
4+
5+
Add warning regarding Turbopack usage.

.changeset/fair-ways-create.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-expo': minor
3+
---
4+
5+
Re-export useReverification hook from `@clerk/clerk-react`

.changeset/giant-comics-argue.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/localizations': patch
3+
---
4+
5+
Add missing Portuguese pt-BR locales for the billing elements.

0 commit comments

Comments
 (0)