Skip to content

Commit 05105f8

Browse files
committed
Fix session status check within setActive
1 parent 6b17d98 commit 05105f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/clerk-js/src/core/clerk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ export class Clerk implements ClerkInterface {
12631263
}
12641264

12651265
// Do not revalidate server cache for pending sessions to avoid unmount of `SignIn/SignUp` AIOs when navigating to task
1266-
if (!sessionIsPending) {
1266+
if (newSession?.status !== 'pending') {
12671267
/**
12681268
* Hint to each framework, that the user will be signed out when `{session: null}` is provided.
12691269
*/

0 commit comments

Comments
 (0)