Minor Changes
-
Introduce
treatPendingAsSignedOutoption togetAuthandauthfromclerkMiddleware(#5756) by @LauraBeatrisBy default,
treatPendingAsSignedOutis set totrue, which means pending sessions are treated as signed-out. You can set this option tofalseto treat pending sessions as authenticated.const { userId } = auth({ treatPendingAsSignedOut: false });
const { userId } = getAuth(req, { treatPendingAsSignedOut: false });
<SignedIn treatPendingAsSignedOut={false}> User has a session that is either pending (requires tasks resolution) or active </SignedIn>