We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d952599 commit 3569919Copy full SHA for 3569919
.changeset/sixty-carpets-stare.md
@@ -1,10 +1,16 @@
1
---
2
-'@clerk/astro': patch
+'@clerk/astro': minor
3
4
5
Introduce `treatPendingAsSignedOut` option to `getAuth` and `auth` from `clerkMiddleware`
6
7
```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
14
const { userId } = getAuth(req, locals, { treatPendingAsSignedOut: false })
15
```
16
0 commit comments