File tree 2 files changed +6
-2
lines changed
packages/nextjs/src/server
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2
2
' @clerk/nextjs ' : patch
3
3
---
4
4
5
- Introduce ` treatPendingAsSignedOut ` to ` auth ` and server-side control components
5
+ Introduce ` treatPendingAsSignedOut ` to ` auth ` , ` getAuth ` and server-side control components
6
6
7
7
``` ts
8
8
const { userId } = auth ({ treatPendingAsSignedOut: false })
9
9
```
10
10
11
+ ``` ts
12
+ const { userId } = getAuth (req , { treatPendingAsSignedOut: false })
13
+ ```
14
+
11
15
``` tsx
12
16
<SignedIn treatPendingAsSignedOut = { false } >
13
17
User has a session that is either pending (requires tasks resolution) or active
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export const createSyncGetAuth = ({
63
63
noAuthStatusMessage : string ;
64
64
} ) =>
65
65
withLogger ( debugLoggerName , logger => {
66
- return ( req : RequestLike , opts ?: { secretKey ?: string } ) : AuthObject => {
66
+ return ( req : RequestLike , opts ?: { secretKey ?: string } & PendingSessionOptions ) : AuthObject => {
67
67
if ( isTruthy ( getHeader ( req , constants . Headers . EnableDebug ) ) ) {
68
68
logger . enable ( ) ;
69
69
}
You can’t perform that action at this time.
0 commit comments