Skip to content

Commit 3569919

Browse files
committed
Update changeset
1 parent d952599 commit 3569919

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.changeset/sixty-carpets-stare.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
---
2-
'@clerk/astro': patch
2+
'@clerk/astro': minor
33
---
44

55
Introduce `treatPendingAsSignedOut` option to `getAuth` and `auth` from `clerkMiddleware`
66

77
```ts
8+
// `pending` sessions will be treated as signed-out by default
9+
const { userId } = getAuth(req, locals, { treatPendingAsSignedOut: false })
10+
```
11+
12+
```ts
13+
// Both `active` and `pending` sessions will be treated as authenticated when `treatPendingAsSignedOut` is false
814
const { userId } = getAuth(req, locals, { treatPendingAsSignedOut: false })
915
```
1016

0 commit comments

Comments
 (0)